model-writtenrun 7117 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Benoit Lobréau proposed four pg_stat_database counters to help administrators size parallel-worker limits, distinguishing query workers from maintenance workers and requested workers from launched workers #1.
- Benoit subsequently moved query accounting into EState for a single update at ExecutorEnd and avoided updates for nonparallel queries, while reporting unstable regression plans #2 #3.
- Bertrand Drouvot recommended testing in workloads that already guarantee parallel execution; this helped Benoit discover that accounting at parallel_vacuum_end missed bulk-deletion workers, and he reported fixing the vacuum accounting and tests #4 #5 #6.
- Michael Paquier preferred prioritizing query workers, suggested separating maintenance statistics, and questioned whether pg_stat_statements could provide the data instead; Benoit defended database counters because they remain available without the extension and avoid its bounded query history #7 #8.
- Michael identified reusable executor counters as the common prerequisite for several observability proposals, and Guillaume Lelarge supplied a two-patch series separating those counters from pg_stat_database reporting, with successful regression and additional testing #9 #10.
- Michael committed the shared EState prerequisite, crediting Guillaume and Benoit as authors; although an earlier version appeared here in #10, the final matching patch was posted in #573050 in thread #50200, which receives attribution for de3a2ea3b2.
- Guillaume supplied a small compatibility delta for the committed EState names, and Benoit resubmitted the remaining work as separate query-statistics, vacuum-counter, and maintenance-statistics patches using consistent to_launch terminology #12 #13.
- Michael accepted the argument for query statistics without pg_stat_statements and requested minor cleanup, but declined to advance maintenance statistics because those operations were less frequent and autovacuum did not support parallel operation #14.
- Michael posted a cleaned-up query-only patch credited to Benoit, who reread it and approved the changes; it landed with only the catalog-version date adjusted #15 #16 #17 e7a9496de9.
- After the commit, Michael Banck questioned whether workers_planned would be clearer than workers_to_launch, and Benoit explained that he had followed pg_stat_statements naming; discussion considered internal consistency and whether planned adequately describes utility operations #19 #20 #21.
- At the thread's end, executor and database query-worker counters had landed, maintenance counters for parallel index builds and vacuum remained uncommitted, and the naming discussion had produced no further patch #22.