model-writtenrun 3961 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that logical messages could disappear after a crash and proposed an unconditional XLogFlush(), initially considering the issue suitable for backpatching #1.
- Tomas Vondra pointed out that transactional messages already receive transaction-level flushing, and Michael restricted the patch to non-transactional messages #2 #3.
- Andres Freund opposed mandatory flushing both in stable releases and on the development branch because per-message flushes would severely slow queueing, auditing, and locking workloads; he proposed an optional argument or a separate flush function, while Tomas and Michael debated the intended durability guarantee #4 #5 #6 #7 #8 #10.
- Michael chose a fourth flush argument defaulting to false, also extending the C interface so callers must consider durability explicitly; he subsequently accepted optional flushing while questioning whether true would be a better default, which was ultimately left false #9 #11.
- Fujii Masao questioned whether flushing should honor synchronous_commit or wait for standby replication; Michael explained that the option intentionally ensures local durability and discussed possible documentation clarification, without changing the implementation #12 #13.
- Tung Nguyen found the missing flush argument in the documented text overload and requested explicit default wording, which Michael incorporated; Tung's argument-name consistency question and the proposed broader synchronous-replication clarification did not produce changes in the posted revisions #14 #15.
- Amit Kapila supported restricting the option to non-transactional messages and requested clearer comments and documentation; Michael incorporated those edits and explained that the functions were already STRICT, after which Amit approved the final patch #16 #17 #18.
- Michael committed #17 as 173b56f1ef with SQL declaration cleanup, a catalog-version bump, and an expanded commit message, then confirmed completion in the thread's final message; optional flushing landed with its false default and no backports #19.