model-writtenrun 3614 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro reported intermittent latch-ownership failures on gharial and raised concerns about its old compiler; after Tom Lane questioned whether there was evidence of miscompilation, Thomas clarified that there was none, and Tom's buildfarm search found only three occurrences, all on gharial #1 #5 #6 #7.
- The platform discussion considered upgrading GCC, dropping HP-UX support, or retiring the machines; Tom Lane favored deferring platform-support decisions until the anticipated build-system transition, while Robert Haas argued that the unmaintained machines offered little value #2 #3 #4 #9.
- Thomas Munro observed that the failures involved parallel workers and submitted a patch to include the existing owner's PID in the OwnLatch() error #8.
- Tom Lane argued that a single-machine failure could still expose a real PostgreSQL bug and proposed PANIC severity to improve the chances of obtaining a stack trace; Robert Haas approved the change, and Tom emphasized inexpensive instrumentation over an extensive investigation #10 #11 #12.
- Thomas Munro committed the diagnostic patch as 12e28aac8e, incorporating PANIC severity and changing the PID temporary and formatting to use int, then announced the push #8 #13.
- Robert Haas obtained machine access and initially kept the buildfarm jobs running to capture another failure; after Thomas reported no recurrence, Robert disabled the jobs, and the remaining administrative discussion concerned stopping missing-report alerts #16 #17 #18 #19 #20.
- In February 2024, Soumyadeep Chakraborty revived the investigation with similar failures on Greenplum based on PostgreSQL 9.4 using newer GCC versions, proposing that PGPROC reuse could expose a stale latch owner and attaching a patch adding a memory barrier to DisownLatch() #21.
- Heikki Linnakangas questioned the proposed race because PGPROC recycling passes through spinlock operations that should provide memory ordering, while Andres Freund suggested investigating duplicate process-exit cleanup and mixed resource ownership instead #22 #23.
- Soumyadeep's final reply questioned whether spinlock acquisition already prevents the proposed reordering even on 9.4 and argued that the suggested child-process cleanup scenario did not fit the reported backends; the diagnostic change remained landed, but the memory-barrier patch and the underlying cause remained unresolved in this thread #24.