postgresql/src/backend/postmaster
Amit Kapila bdf35744bd Avoid counting transaction stats for parallel worker cooperating
transaction.

The transaction that is initiated by the parallel worker to cooperate
with the actual transaction started by the main backend to complete the
query execution should not be counted as a separate transaction.  The
other internal transactions started and committed by the parallel worker
are still counted as separate transactions as we that is what we do in
other places like autovacuum.

This will partially fix the bloat in transaction stats due to additional
transactions performed by parallel workers.  For a complete fix, we need to
decide how we want to show all the transactions that are started internally
for various operations and that is a matter of separate patch.

Reported-by: Haribabu Kommi
Author: Haribabu Kommi
Reviewed-by: Amit Kapila, Jamison Kirk and Rahila Syed
Backpatch-through: 9.6
Discussion: https://postgr.es/m/CAJrrPGc9=jKXuScvNyQ+VNhO0FZk7LLAShAJRyZjnedd2D61EQ@mail.gmail.com
2019-04-10 08:24:15 +05:30
..
autovacuum.c Allow VACUUM to be run with index cleanup disabled. 2019-04-04 15:04:43 -04:00
bgworker.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
bgwriter.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
checkpointer.c Wake up interested backends when a checkpoint fails. 2019-04-06 09:31:48 +13:00
fork_process.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
pgarch.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
pgstat.c Avoid counting transaction stats for parallel worker cooperating 2019-04-10 08:24:15 +05:30
postmaster.c Avoid "could not reattach" by providing space for concurrent allocation. 2019-04-08 21:39:00 -07:00
startup.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
syslogger.c Make current_logfiles use permissions assigned to files in data directory 2019-03-24 21:00:35 +09:00
walwriter.c Update copyright for 2019 2019-01-02 12:44:25 -05:00