pgsql: pgstat: move transactional code into pgstat_xact.c.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgstat: move transactional code into pgstat_xact.c.
Date: 2022-04-06 20:25:30
Message-ID: E1ncCDZ-000d2p-ID@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)anarazel(dot)de>
Reviewed-By: Thomas Munro <thomas(dot)munro(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-04-06 20:57:57 pgsql: pgstat: stats collector references in comments.
Previous Message Andres Freund 2022-04-06 19:44:40 pgsql: dsm: allow use in single user mode.