pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split wait event related code from pgstat.[ch] into wait_event.[
Date: Sat, 03 Apr 2021 03:06:52 +0000
Message-ID: <E1lSWce-0007J9-MC@gemulon.postgresql.org> (raw)

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



Message-ID: <E1lSWce-0007J9-MC@gemulon.postgresql.org>
Permalink:  ../E1lSWce-0007J9-MC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lSWce-0007J9-MC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Split wait event related code from pgstat.[ch] into wait_event.[
  In-Reply-To: <E1lSWce-0007J9-MC@gemulon.postgresql.org>
  References: <E1lSWce-0007J9-MC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox