model-writtenrun 9542 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Haribabu Kommi reported that parallel workers inflated transaction counters enough to make slower configurations appear faster in monitoring dashboards, and supplied a reproducer in #1 and #2.
- Amit Kapila proposed treating parallel cooperation as one transaction in #3, and Haribabu's initial patch in #4 excluded all worker transaction commits and rollbacks while retaining other statistics.
- After a month, Rahila Syed tested the initial patch and questioned the remaining extra commits in #5; Kirk Jamison rebased it in #6 and confirmed its counter behavior with autovacuum disabled in #9.
- Amit identified in #10 that IsParallelWorker() also excluded independent transactions used for worker setup, and proposed passing the transaction-specific is_parallel_worker flag from the callers.
- Robert Haas argued that client transaction throughput could be counted on the client and that internal transaction semantics were ambiguous in #12, while Alvaro Herrera defended useful server-side monitoring counters and excluding implementation details in #13.
- Haribabu proposed separate internal-transaction columns in #18, but Amit argued in #19 and #21 for a narrowly backpatchable fix excluding only cooperating transactions, leaving broader counter semantics for a separate feature.
- Haribabu implemented the caller-supplied flag in #22, reporting that four workers now produced nine counted transactions instead of thirteen; Kirk confirmed the behavior and passing checks in #23.
- Amit objected in #24 to bypassing all remaining statistics processing because future parallel writes would need it, and Haribabu restored that processing while guarding only commit/rollback counters in #25.
- Amit prepared the final wording and formatting and tested force_parallel_mode in #26; Haribabu supplied tested adaptations for PostgreSQL 10 and 9.6 in #27, and Kirk verified the final patches across branches in #28.
- Amit landed the development-branch patch from #26 unchanged apart from base context as bdf35744bd, with backports through PostgreSQL 9.6, and announced completion in #30.
- The cooperating-transaction fix was complete, while broader handling of internally generated transactions remained future work that Haribabu volunteered to investigate in #31.