pgsql: pgstat: move transactional code into pgstat_xact.c. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: pgstat: move transactional code into pgstat_xact.c.
Date
Msg-id E1ncCDZ-000d2p-ID@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

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(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: dsm: allow use in single user mode.
Next
From: Andres Freund
Date:
Subject: pgsql: pgstat: stats collector references in comments.