model-writtenrun 8652 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexey Bashtanov proposed a configurable parameter-length limit in #1 because fixed truncation of error parameters could hide information needed to reproduce failures.
- Tom Lane supplied a corrected patch in #2, fixing documentation and test failures while questioning whether one superuser-only setting should govern client errors, logged errors, and routine statement logging.
- Alvaro Herrera proposed separating error and routine logging behavior in #3; discussion through #4, #5, and #6 settled on a user-settable error limit and a superuser-controlled statement limit, preserving unlimited routine logging by default.
- Bruce Momjian questioned excluding query text in #7, while Tom Lane and Alvaro Herrera explained the security and implementation reasons for focusing on bind parameters in #8 and #9; Keisuke Kuroda's request to retain string suffixes in #10 and Justin Pryzby's query-length concerns in #11 remained outside the landed patch.
- Alexey implemented independent error and statement limits with expanded tests in #12, and Tom stressed completing the change before PostgreSQL 13 shipped in #13.
- Justin proposed using zero to disable parameter logging and -1 for unlimited values in #14, then suggested eliminating the redundant boolean in #16; Tom endorsed that simplification in #17, and Alexey implemented it in #18.
- Justin's detailed review in #19 led Alexey to clarify per-parameter limits and reorder the unlimited-copy branch in #20, while retaining the assertion that callers must not pass zero.
- Alvaro and Tom explained the extra multibyte characters needed for safe truncation and ellipsis handling in #21 and #22.
- Tom committed #20 as 0b34e7d307, adding documentation and test cleanup plus consistent zero/-1 handling in the quoting helper and its PL/pgSQL callers; he announced the landing in #23, and Alexey acknowledged completion in #24.