model-writtenrun 8972 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vyacheslav Makarov proposed raising track_activity_query_size's maximum from 100 kB to 1 MB to accommodate large ORM-generated queries, with an accompanying range comment in postgresql.conf.sample #1.
- Bruce Momjian supported the larger maximum but opposed the range comment #2, while Tom Lane raised performance, memory-consumption, and possible integer-overflow concerns #3.
- Alexey Kondratov examined integer limits and multiplication by backend slots #5, while Nikolay Samokhvalov and Tomas Vondra explained how ORM-generated statements and joins complicate troubleshooting when query text is truncated #8 #10.
- Julien Rouhaud suggested exposing query identifiers to retrieve normalized statements through an extension #11 #13, while Robert Haas argued that the proposed maximum imposed no cost on unchanged configurations and observed that query-text reads and writes stop at a NUL byte #14.
- After Robert Treat questioned how users could assess overhead #16, Tom Lane inspected pgstat.c and confirmed that copying stops at the terminator but each reader can allocate the full configured buffer space; he accepted a megabyte-scale limit and separately identified an unused clipping result in pg_stat_get_backend_activity() #18.
- Jeff Janes suggested preserving the beginning and end of long statements by truncating their middle #24, but Robert Haas favored the original small change and deferred more elaborate truncation or normalization approaches; Tom Lane agreed #25 #26.
- Michael Paquier reviewed the documentation choices and called for commitment #27, after which Robert Haas committed the original maximum-value change as 8147278589, omitting the sample-configuration comment because of Bruce's objection and line width #28.
- The thread ended with Michael Paquier's acknowledgment #29; the requested maximum increase had landed, while no resolution of the separately identified clipping and encoding issues was recorded in this thread #18.