From d7cbeaf261da346d8c745870da1d31075ae0313c Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 26 Feb 2025 15:29:51 +0900 Subject: 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 Discussion: https://postgr.es/m/Z71oPkJJICrRB5Ws@paquier.xyz --- src/include/utils/pgstat_internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include/utils') diff --git a/src/include/utils/pgstat_internal.h b/src/include/utils/pgstat_internal.h index 06dcea3f0dc..36d228e3558 100644 --- a/src/include/utils/pgstat_internal.h +++ b/src/include/utils/pgstat_internal.h @@ -748,8 +748,6 @@ extern void pgstat_slru_snapshot_cb(void); * Functions in pgstat_wal.c */ -extern void pgstat_flush_wal(bool nowait); - extern void pgstat_wal_init_backend_cb(void); extern bool pgstat_wal_have_pending_cb(void); extern bool pgstat_wal_flush_cb(bool nowait); -- cgit v1.2.3