model-writtenrun 1877 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih reported that shmem_startup_hook runs in both the postmaster and backends under EXEC_BACKEND and questioned whether the backend invocation was erroneous #1; Nathan Bossart explained that those backends must initialize their shared-memory pointers, whereas forked backends inherit them, exposing an inaccuracy in the documentation #2.
- Sami requested a stronger warning about repeated execution #4 and cited connection-time locking in pg_stat_statements and repeated LWLock tranche allocation in test_slru, proposing an !IsUnderPostmaster guard for postmaster-only work #6.
- Nathan considered the locking concern unlikely to cause trouble and agreed that test_slru's repeated allocations looked wrong, while initially favoring general concurrency guidance over mentioning EXEC_BACKEND #7; Sami argued that existing ShmemInitStruct guidance did not explain the different execution frequency for other hook code #8.
- Nathan submitted a combined documentation and test_slru patch that distinguished build behavior and restricted tranche allocation to the postmaster #9; Sami requested explicit Windows and EXEC_BACKEND terminology #10, which Nathan added in the revision #11 that Sami approved #12.
- Nathan committed the test_slru portion of #11 separately as 530cfa8eb5, preserving its logic while polishing the comment, and declined to backpatch because the damage was limited to unused tranche IDs in a test module.
- Nathan committed the documentation portion of #11 with a small wording adjustment as 778f391c26 and backpatched that correction through PostgreSQL 17.
- The thread ended with Nathan confirming both changes were committed and explaining that only the documentation warranted backpatching, leaving no attached work outstanding #13.