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 <[email protected]> Reviewed-By: Thomas Munro <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ab62a642d52c95c0c62e927ba1bf3cfa279b744b Modified Files -------------- src/backend/postmaster/pgstat.c | 184 +++++-------------------------- src/backend/utils/activity/Makefile | 3 +- src/backend/utils/activity/pgstat_xact.c | 139 +++++++++++++++++++++++ src/include/pgstat.h | 18 +-- src/include/utils/pgstat_internal.h | 8 +- 5 files changed, 189 insertions(+), 163 deletions(-)
