pgsql: Remove pgstat_flush_wal()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove pgstat_flush_wal()
Date: 2025-02-26 06:37:53
Message-ID: E1tnB3H-0008XK-2s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove pgstat_flush_wal()

All the processes that generate WAL should call pgstat_report_wal() to
report all their statistics related to WAL, and this is already what
happens in the tree. Keeping pgstat_report_wal() is confusing while the
other routine is encouraged.

This routine is not required since fc415edf8ca8, where it was lastly
used in pgstat_report_stat() before an equivalent callback existed.

Author: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://postgr.es/m/Z71oPkJJICrRB5Ws@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/backend/utils/activity/pgstat_wal.c | 11 +----------
src/include/utils/pgstat_internal.h | 2 --
2 files changed, 1 insertion(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-02-26 07:50:27 pgsql: Adding new PgStat_WalCounters structure in pgstat.h
Previous Message Amit Kapila 2025-02-26 05:55:35 pgsql: Add two-phase option in pg_createsubscriber.