model-writtenrun 8841 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Matt Jibson reported a PostgreSQL 11.5 segmentation fault from a query containing NOT IN within a multi-row VALUES list #1.
- Tom Lane reproduced the failure back to PostgreSQL 9.4 and traced it to short-lived hashed SubPlan tuple slots leaving dangling pointers in the executor's es_tupleTable; his initial patch detached those slots and added defensive checks, while acknowledging that other connections could remain unsafe #2.
- Tom abandoned that workaround because SubPlans could connect transient state to permanent executor state through additional mechanisms; his replacement initializes VALUES rows containing SubPlans at executor startup and passes a NULL parent when initializing other rows transiently #3.
- The replacement also restores visibility of those SubPlans in EXPLAIN and adds regression tests, accepting longer-lived expression state for SubPlan-containing rows because very large VALUES lists were considered unlikely to contain them #3.
- The thread ends with Tom requesting objections to the replacement #3; it subsequently landed unchanged as 41c6f9db25 and was backpatched to all supported branches, with no independent patch review shown in this thread.