model-writtenrun 2772 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera relayed Gabriele Bartolini’s report that reloading synchronized_standby_slots with the logging collector enabled crashed syslogger because the validation hook acquired an LWLock without a PGPROC #1.
- Alvaro proposed replacing the ReplicationSlotCtl guard with a MyProc check so processes without a PGPROC skip slot validation, attaching the sole patchset #1.
- Amit Kapila found that Windows avoided the crash because syslogger’s ReplicationSlotCtl was null, explained why Linux retained an invalid pointer after fork and shared-memory detachment, and supported the proposed fix #2.
- Zhijie Hou reproduced the bug, verified the fix through regression and manual reload testing, and approved the patch in the thread’s final message #3.
- Alvaro subsequently committed #1 as 9abdc1841e, retaining its logic while correcting and rewriting comments; the fix also received a PostgreSQL 17 backport, leaving no outstanding work identified in the thread.