pgsql: pg_stat_statements: Add wal_buffers_full

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_stat_statements: Add wal_buffers_full
Date: 2025-02-17 04:55:52
Message-ID: E1tjtAe-007Y8P-2k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_stat_statements: Add wal_buffers_full

wal_buffers_full tracks the number of times WAL buffers become full,
giving hints to be able to tune the GUC wal_buffers.

Up to now, this information was only available in pg_stat_wal. With
this field available in WalUsage since eaf502747bac, exposing it in
pg_stat_statements is straight-forward, and it offers more granularity
at query level.

pg_stat_statements does not need a version bump as one has been done in
commit cf54a2c00254 for this development cycle.

Author: Bertrand Drouvot
Reviewed-by: Ilia Evdokimov
Discussion: https://postgr.es/m/Z6SOha5YFFgvpwQY@ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

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

Modified Files
--------------
contrib/pg_stat_statements/expected/oldextversions.out | 1 +
contrib/pg_stat_statements/pg_stat_statements--1.11--1.12.sql | 1 +
contrib/pg_stat_statements/pg_stat_statements.c | 10 ++++++++--
doc/src/sgml/pgstatstatements.sgml | 9 +++++++++
4 files changed, 19 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-02-17 05:56:16 pgsql: Add information about WAL buffers being full to EXPLAIN (WAL)
Previous Message Michael Paquier 2025-02-17 04:16:25 pgsql: Move wal_buffers_full from PgStat_PendingWalStats to WalUsage