model-writtenrun 5438 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yugo Nagata reported that large-object functions could persist database changes inside read-only transactions and produced confusing internal errors during recovery, proposing explicit guards and regression tests in #1; Laurenz Albe endorsed the proposal in #2.
- Michael Paquier raised compatibility concerns in #3, prompting Yugo Nagata to narrow the patch to recovery-only guards and remove the read-only tests in #4.
- Michael Paquier reviewed the recovery variant in #5, questioning protection for the public lo_write routine and write-mode lo_open, identifying misleading lo_truncate64 error naming, and suggesting removal of FSDB debugging code.
- Robert Haas and Tom Lane argued that permitting database writes in read-only transactions was incorrect, supported changing future releases without backpatching, and distinguished database-state changes from external writes in #7, #8, #9, #11, and #12.
- Michael Paquier accepted the broader direction while requesting additional guard coverage in #13, and Yugo Nagata restored the original read-only policy in #14, adding write-mode lo_open protection, separate truncate error names, additional tests, and a correction to reversed mode constants in test comments.
- Michael Paquier extracted the comment correction from #14 into 664da2a389, adjusting the ordering and updating both expected-output files, as reported in #15.
- In #15, Michael Paquier accepted leaving the public C lo_write routine without a new guard and requested documentation, translation-safe error wording, and alternate expected-output coverage; Yugo Nagata supplied those refinements in #16, although the attachment still contained the lo_write guard.
- Michael Paquier committed #16 as 55f4802785, removing the public lo_write guard and lightly editing the documentation while retaining the SQL-facing protections and tests; the suggested FSDB cleanup was not included.
- Michael Paquier announced application in #17, and Yugo Nagata acknowledged it in #18, closing the thread with both the independent comment fix and the main read-only restriction landed.