model-writtenrun 6177 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas opened the thread with a commit announcement explaining a segfault during EvalPlanQual when a table mixes local and foreign partitions, crediting Andrey Lepikhov for the report and diagnosis #1.
- The announced fix skips the es_result_relations lookup and BeginDirectModify calls during EvalPlanQual and adds a runtime check against executing direct-modify foreign scans, with a backpatch to PostgreSQL 14 #1.
- Amit Langote subsequently supplied a comment-only patch adding a missing “be” and clarifying that the restriction on calling ExecForeignScan applies while EvalPlanQual is active #2.
- Heikki committed Amit’s patch unchanged as 6ac763f19a, with the commit message specifying the same PostgreSQL 14 backpatch scope.
- Heikki confirmed that the patch had been applied, leaving no outstanding work in the thread #3.