pgsql: Split wait event related code from pgstat.[ch] into wait_event.[

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Split wait event related code from pgstat.[ch] into wait_event.[
Date: 2021-04-03 03:06:52
Message-ID: E1lSWce-0007J9-MC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-04-03 08:36:02 pgsql: Refactor HMAC implementations
Previous Message Michael Paquier 2021-04-03 02:53:27 Re: pgsql: Add 'noError' argument to encoding conversion functions.