postgresql/src
Amit Kapila 7657072e0c 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:47:39 +05:30
..
backend Avoid counting transaction stats for parallel worker cooperating 2019-04-10 08:47:39 +05:30
bin Have pg_upgrade's Makefile honor NO_TEMP_INSTALL 2019-03-31 08:21:53 -04:00
common Tolerate EINVAL when calling fsync() on a directory. 2019-02-24 23:52:20 +13:00
fe_utils Fix translation of special characters in psql's LaTeX output modes. 2018-11-26 17:32:51 -05:00
include Avoid counting transaction stats for parallel worker cooperating 2019-04-10 08:47:39 +05:30
interfaces Fix potential memory access violation in ecpg if filename of include file is 2019-03-11 16:15:09 +01:00
makefiles Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:42 -07:00
pl Translation updates 2019-02-11 14:25:01 +01:00
port Fix error handling of readdir() port implementation on first file lookup 2019-03-04 09:50:06 +09:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Fix improper interaction of FULL JOINs with lateral references. 2019-04-08 16:09:29 -04:00
timezone Update time zone data files to tzdata release 2018i. 2019-02-05 10:59:15 -05:00
tools Revert "Consistently test for in-use shared memory." 2019-04-05 00:00:55 -07:00
tutorial Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Build src/test/isolation during "make" and "make install". 2017-11-22 20:18:52 -08:00
Makefile.global.in Revert "Consistently test for in-use shared memory." 2019-04-05 00:00:55 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00