pg_stat_statements: Add wal_buffers_full
authorMichael Paquier
Mon, 17 Feb 2025 04:55:17 +0000 (13:55 +0900)
committerMichael Paquier
Mon, 17 Feb 2025 04:55:17 +0000 (13:55 +0900)
commitce5bcc4a9f26484746f82d23584c8e342cba9b10
treee88c17645b811c373cca809801ad3874941e7589
parenteaf502747bacee0122668eb1ba3979f86b8d8342
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/[email protected]
contrib/pg_stat_statements/expected/oldextversions.out
contrib/pg_stat_statements/pg_stat_statements--1.11--1.12.sql
contrib/pg_stat_statements/pg_stat_statements.c
doc/src/sgml/pgstatstatements.sgml