model-writtenrun 7530 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier opened the thread with Fujii Masao's report that log_statement outputs zero query identifiers and his own observation that autovacuum workers can log stale identifiers #1.
- Julien Rouhaud explained that log_statement logs syntactically valid queries before semantic analysis, including queries for which no identifier can be computed, and proposed documenting that limitation #2.
- Michael Banck asked whether sampling had the same limitation #3; Julien explained that log_statement_sample_rate samples duration-based logging and works correctly #4, and noted that query identifiers make log_duration useful without logging full query text #5.
- Julien's patch documented the logging limitation and fixed stale identifiers by resetting the field in pgstat_bestart(), after tracing the problem to reused PgBackendStatus entries #6.
- Bruce Momjian lightly edited the documentation and adapted the field name, then committed both changes as db01f797dd; his announcement included the exact applied patch #7.
- Julien closed the thread by confirming that another query identifier fix had already been committed separately and agreeing that the outstanding issues were resolved #8.