model-writtenrun 5385 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis proposed processing shared_preload_libraries in single-user mode because custom WAL resource managers otherwise prevent recovery, and custom table access methods may also require preloaded modules #1.
- Tom Lane supported the change, noting that troublesome libraries could be removed from the configuration, but identified missing library-support initialization and suggested sharing more startup logic with the postmaster #2.
- Andres Freund endorsed the review and suggested removing single-user mode; Tom defended its minimal recovery environment, while Andres argued that its unusual execution paths and shutdown requirements made recovery harder and proposed a configuration setting to disable unnecessary systems instead #3 #4 #5.
- Alexander Kukushkin pointed out that single-user mode also ensures a clean shutdown before pg_rewind, and Andres replied that this usage could be changed #6 #7.
- Jeff's revised patch added shared-memory requests, runtime shared-memory configuration, and WAL consistency-checking initialization; he also explained how preload-dependent table access methods could prevent database-wide VACUUM and favored backpatching only to PostgreSQL 15 #8.
- In the final thread message, Masahiko Sawada observed that failsafe vacuum or disabling heap truncation can permit anti-wraparound vacuum without allocating transaction IDs, leaving the broader debate about replacing single-user mode unresolved #9.
- Jeff subsequently committed the revised patch unchanged and backpatched it through PostgreSQL 15, completing the targeted initialization fix without implementing the broader architectural proposals #8 6c31ac091f.