model-writtenrun 9713 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- KaiGai Kohei reported a PG-Strom crash caused by add_partial_path freeing a dominated path still referenced by a Gather node, suggesting reference tracking or avoiding the free in #1; Tom Lane instead questioned why Gather paths were constructed before all partial paths existed in #2.
- KaiGai traced the problem to set_rel_pathlist_hook running after generate_gather_paths in #3, and Tom proposed separate hooks in #4; KaiGai outlined an early hook accepting both regular and partial paths and a later hook for manipulating completed paths in #5.
- Amit Kapila questioned the overlapping responsibilities and extension migration costs in #6 and #8, while KaiGai explained that a shared early hook avoids duplicate extension setup and lets core construct Gather paths in #7 and #9.
- KaiGai submitted the two-hook implementation and reported successful parallel custom-scan planning without crashes after adapting PG-Strom in #10.
- Kyotaro Horiguchi explained that pg_hint_plan would benefit from manipulating partial paths before gathering in #11, prompting KaiGai to question the need for the second hook in #12; Robert Haas supported simple relocation in #13, and KaiGai submitted that simplification in #14.
- Kyotaro assessed the remaining compatibility issue in #16, concluding that extensions could continue making redundant generate_gather_paths calls with little harm and that the change was acceptable in a minor release.
- Amit raised backpatch compatibility concerns in #19; Tom committed to pushing the fix in #20, judging the loss of Gather-path manipulation less important than supporting partial paths and concluding that a separate hook offered insufficient benefit.
- Tom subsequently committed the unchanged resend #18 as 6401583863, adding explanatory comments and documentation and backpatching through PostgreSQL 9.6; the relocation fix landed, while the additional hook was abandoned.