model-writtenrun 1344 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fujii Masao opened the thread in #1 by explaining that logical replication overwrote user-supplied connection options, preventing per-connection settings such as wal_sender_timeout, and proposed setting the three mandatory formatting GUCs after connection instead.
- Fujii posted that implementation in #2, fixed a compiler warning in #3, and adopted Chao Li's lengthof() suggestion in #9; Chao's suggestion to combine the SET commands was initially declined because connection-startup round trips seemed insignificant in #7.
- Jelte Fennema-Nio confirmed that the regression broke a Citus use case in #11, and Fujii identified the documented options=-crow_security=off use case in #13, leading to the backpatch-oriented revision in #14.
- Kirill Reshke requested documentation clarification and TAP coverage in #15; Fujii pointed to existing documentation in #16 and added a separate log_disconnections-based test in #17.
- After Kirill approved the implementation in #19, Amit Kapila proposed appending mandatory settings to the user's options in #20 and #22, avoiding additional round trips entirely.
- Fujii implemented that design in #23, generalizing the conninfo extraction helper and preserving user options before appending mandatory formatting settings; Japin Li approved the approach with a wording suggestion in #24.
- A CI failure prompted Fujii to switch the TAP test to log_statement_stats in #25, and Kirill's request to validate the result immediately after reconnection in #26 led to the final test placement in #33.
- Chao reported a hang with malformed options and suggested removing pfree NULL checks in #30; Japin explained why the backend checks were necessary and why option validation was more complicated in #31, after which Chao withdrew the memory-handling suggestion in #32, while no additional option validation was added.
- Amit accepted the formatting explanation in #35, and Fujii announced the landing in #36: d926462d81 took the implementation attachment from #33, while 5f13999aa1 took its TAP-test attachment, with matching code diffs and backpatches through PostgreSQL 15.
- Alexander Lakhin reported a buildfarm failure in #37 and diagnosed that the test introduced by 5f13999aa1 read the publisher's log using an offset obtained from the subscriber's log.
- Fujii supplied the correction in #38, using publisher offsets for publisher-log reads and separating publisher and subscriber position variables to prevent similar mistakes.
- The correction landed unchanged as 36ead71232 and was backpatched through PostgreSQL 15; Fujii's final confirmation in #39 leaves all submitted work committed, with no remaining patch awaiting review.