model-writtenrun 878 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported a syslogger NULL-pointer crash when EXEC_BACKEND, logging_collector, and shared preload libraries combined with startup logging #1, then bisected it to earlier backend-type assignment and verified that reverting that change removed the failure #2.
- Ayush Tiwari independently confirmed that B_LOGGER was assigned before syslogger reopened its files and recommended guarding stderr, CSV, and JSON writes by readiness #3; Michael insisted that early messages should take the stderr path instead of masking the startup error with a NULL-file check #4.
- Euler Taveira considered delaying B_LOGGER assignment but called that approach hackish #5, while Michael considered a separate readiness flag #6 and rejected Kyotaro Horiguchi's proposed NULL-file fallback as hiding the underlying logic bug #7 #8.
- Álvaro Herrera posted a proof of concept introducing syslogger_setup_done and using it for three logging decisions in elog.c #9.
- Euler confirmed that Álvaro's patch fixed the crash and submitted an alternative using redirection_done #10; Álvaro rejected reusing that flag because pipe redirection and local file readiness have different meanings, particularly when syslogger restarts #11, and Euler accepted the separate flag #12.
- Michael verified the readiness patch and requested equivalent checks in csvlog.c and jsonlog.c plus documentation #13; Álvaro incorporated those changes, adjusted readiness initialization for both startup modes, and committed fb23cc7e81 from #9.
- Álvaro reported testing through modifications to pg_ctl's log-rotation test and accepted that very early syslogger warnings could appear only on postmaster stderr, provided startup no longer crashed #14.
- Anton Voloshin subsequently noticed the new flag lacked PGDLLIMPORT #16; Álvaro questioned whether extensions needed access #17, while Michael identified potential readiness problems in his external jsonlog module #18.
- Anton demonstrated that the declaration violated the existing header-marking convention #19, and Michael independently confirmed the omission and explained why Windows extensions accessing the flag would need the marker #20.
- Álvaro agreed to make the correction #21 and landed the discussion-derived one-line fix as 603a3335f2, confirming completion in #23.
- The thread ended with both core fixes landed and Michael reporting that his external jsonlog module needed two readiness checks and a MyBgworkerEntry guard to work with version 19 onward #25; no attached core patch remained pending.