model-writtenrun 3079 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kuntal Ghosh reported a prepared-statement crash when a partition was concurrently detached and then dropped, supplied debugger-assisted reproduction steps in #1, and proposed guarding the missing catalog tuple so existing retry logic could recover in #2.
- Tender Wang approved the patch in #3, and Junwang Zhao reproduced the problem and approved it in #4; Alvaro Herrera then posted a revision adding explanatory comments and narrowing declaration scope in #5.
- The partition-descriptor fix landed as 559ae1336e from #5, with comments omitted in the supplied branch version; Alvaro explained in #6 that he extended the NULL check to older supported branches because dereferencing an unchecked scan result was unsafe even without a known reproducer there.
- Further testing exposed a separate planner error opening an already-dropped partition in #6; Kuntal reproduced the race and proposed checking existence after acquiring the child lock in #7, while raising the question of pruning bookkeeping.
- Alvaro addressed that concern in #8 with a separate patch using try_table_open and treating missing partitions as pruned; Kuntal confirmed the fix through testing in #9, and Junwang agreed in #10.
- The planner fix landed as 3ad4c8615a from #8, with branch-specific bitmap bookkeeping, and Alvaro announced the push in #11.
- Both fixes were committed by the end of the thread, and Kuntal marked the commitfest entry committed in #12, with no further work identified.