pgsql: Split wait event related code from pgstat.[ch] into wait_event.[ - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Split wait event related code from pgstat.[ch] into wait_event.[
Date
Msg-id E1lSWce-0007J9-MC@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Split wait event related code from pgstat.[ch] into wait_event.[ch].

The wait event related code is independent from the rest of the
pgstat.[ch] code, of nontrivial size and changes on a regular
basis. Put it into its own set of files.

As there doesn't seem to be a good pre-existing directory for code
like this, add src/backend/utils/activity.

Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/20210316195440.twxmlov24rr2nxrg@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a333476b925134f6185037eaff3424c07a9f466f

Modified Files
--------------
src/backend/postmaster/pgstat.c         | 673 -------------------------------
src/backend/utils/Makefile              |  15 +-
src/backend/utils/activity/Makefile     |  19 +
src/backend/utils/activity/wait_event.c | 690 ++++++++++++++++++++++++++++++++
src/include/pgstat.h                    | 274 +------------
src/include/utils/wait_event.h          | 301 ++++++++++++++
6 files changed, 1025 insertions(+), 947 deletions(-)


pgsql-committers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: pgsql: Add 'noError' argument to encoding conversion functions.
Next
From: Michael Paquier
Date:
Subject: pgsql: Refactor HMAC implementations