pgstat: move transactional code into pgstat_xact.c.
authorAndres Freund <andres@anarazel.de>
Wed, 6 Apr 2022 20:23:47 +0000 (13:23 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 6 Apr 2022 20:23:47 +0000 (13:23 -0700)
commitab62a642d52c95c0c62e927ba1bf3cfa279b744b
treee547c3733da25069bc9e92b87b5bbe4d50f88966
parentc3e9b07936f70388c6f5341b68d6a04d40e07b86
pgstat: move transactional code into pgstat_xact.c.

The transactional integration code is largely independent from the rest of
pgstat.c. Subsequent commits will add more related code.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/20220404041516.cctrvpadhuriawlq@alap3.anarazel.de
src/backend/postmaster/pgstat.c
src/backend/utils/activity/Makefile
src/backend/utils/activity/pgstat_xact.c [new file with mode: 0644]
src/include/pgstat.h
src/include/utils/pgstat_internal.h