pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor pgstat_prepare_io_time() with an input argument instead
Date: Sat, 16 Dec 2023 19:18:23 +0000
Message-ID: <E1rEaB4-00AVvD-Hg@gemulon.postgresql.org> (raw)

Refactor pgstat_prepare_io_time() with an input argument instead of a GUC

Originally, this routine relied on track_io_timing to check if a time
interval for an I/O operation stored in pg_stat_io should be initialized
or not.  However, the addition of WAL statistics to pg_stat_io requires
that the initialization happens when track_wal_io_timing is enabled,
which is dependent on the code path where the I/O operation happens.

Author: Nazir Bilal Yavuz
Discussion: https://postgr.es/m/CAN55FZ3AiQ+ZMxUuXnBpd0Rrh1YhwJ5FudkHg=JU0P+-W8T4Vg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c9d9acae0bc0cd2f905043cb1d581baec4622c4

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c    | 10 +++++-----
src/backend/storage/buffer/localbuf.c  |  4 ++--
src/backend/storage/smgr/md.c          |  4 ++--
src/backend/utils/activity/pgstat_io.c | 14 ++++++++++++--
src/include/pgstat.h                   |  2 +-
5 files changed, 22 insertions(+), 12 deletions(-)



Message-ID: <E1rEaB4-00AVvD-Hg@gemulon.postgresql.org>
Permalink:  ../E1rEaB4-00AVvD-Hg@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rEaB4-00AVvD-Hg@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor pgstat_prepare_io_time() with an input argument instead
  In-Reply-To: <E1rEaB4-00AVvD-Hg@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