model-writtenrun 2020 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Patrick Stählin reported that dropping a database in PostgreSQL 18beta2 single-user mode triggered an assertion in ModifyWaitEvent(), with reproduction instructions and a stack trace showing WaitForProcSignalBarrier(); the same procedure worked on PostgreSQL 17.5 #1.
- Patrick explained that git bisect identified a mismatch: InitializeLatchWaitSet() registered the postmaster-death event only under a postmaster, while WaitLatch() unconditionally referenced it #2.
- Patrick submitted a patch co-authored with Ronan Dunklau that added the matching IsUnderPostmaster guard, reporting that it fixed their failure and passed selftests #2.
- Michael Paquier agreed that the guard matched established single-user-mode handling, approved the patch, and promised to fix the issue in the thread's final message #3.
- Michael subsequently committed the patch with only whitespace and commit-message changes as 641f20d4c4, with a backport to PostgreSQL 18, completing the submitted fix.