model-writtenrun 9514 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Roman Zharkov reported a PostgreSQL development-server PANIC during a concurrent pgbench workload through Odyssey, preceded by an unexpected table_lock_tuple status error #1, and supplied the read/update workload and debugging details #10.
- Tom Lane, Andres Freund, and Alvaro Herrera investigated whether the error arose during commit or from tuple visibility handling, eventually narrowing the unexpected status to nodeModifyTable.c and requesting PANIC instrumentation to capture its origin #3 #7 #14 #15.
- Roman supplied a heap_lock_tuple assertion failure and reproduced the unexpected status without the connection pooler, establishing that the pooler was not required to trigger the problem #18 #21.
- While preparing Amit Langote's partitioned-table EPQ fix from thread #68996, Tom added an isolation test that reliably produced the same unexpected-status error after the original crash was fixed, and held the patch pending investigation #22.
- Andres traced that reproducer to update-chain traversal encountering a self-modified tuple and posted a separate patch returning TM_SelfModified and handling it in UPDATE and DELETE, while noting that Roman's single-statement workload remained unexplained #25.
- Andres identified missing command-ID metadata, expanded the patch with tests, and proposed enforcing previously missed triggered-modification errors only on master because adapting the older EvalPlanQualFetch implementation would be difficult #27 #28 #29.
- The self-modification patch from #29 landed as 41f5e04aec with comment corrections, adding consistent error handling and regression coverage without backpatching.
- Amit rebased the partitioned-table EPQ patch after that fix and supplied a PostgreSQL 10/11 adaptation #30 #31; Tom committed the development version as a8cb8f1246, adding a guard against copying an empty root-relation array and making naming and comment adjustments.
- After committing the EPQ fix, Tom requested broader tests for partition movement; Andres explained that concurrent movement raises a serialization error, and Amit agreed to pursue the additional tests in another thread #32 #33 #34.
- Roman's completed bisection implicated the FullTransactionId conversion, and he clarified that the original PANIC still had no fix despite the two executor fixes having landed #35 #37.
- Thomas Munro found that GetNewTransactionId() failed to reload full_xid after releasing and reacquiring XidGenLock at xidVacLimit, posted the one-line fix, and also identified a separate transaction-state size calculation error #41.
- Roman successfully tested the transaction-ID patch before Thomas committed it as f7feb020c3, with an additional local-value cleanup and the transaction-state size correction included #43 #44.
- The thread ended with the original bug moved to the fixed-items list; all three fixes had landed, while the proposed broader partition-routing tests were left for separate discussion #46 #34.