summaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-11-03 19:42:03 +0900
committerMichael Paquier <michael@paquier.xyz>2025-11-03 19:42:03 +0900
commitad25744f436ed7809fc754e1a44630b087812fbc (patch)
tree9ba1920a0b18af1de21061edbbfcc4138712d22f /src/backend/commands
parentfce7c73fba4e5e3014c27b8980aa07511d6e0f85 (diff)
Add wal_fpi_bytes to VACUUM and ANALYZE logs
The new wal_fpi_bytes counter calculates the total amount of full page images inserted in WAL records, in bytes. This commit adds this information to VACUUM and ANALYZE logs alongside the existing counters, building upon f9a09aa29520. Author: Shinya Kato <shinya11.kato@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/aQMMSSlFXy4Evxn3@paquier.xyz
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/analyze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index c2e216563c6..25089fae3e0 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -831,10 +831,11 @@ do_analyze_rel(Relation onerel, const VacuumParams params,
total_blks_read,
total_blks_dirtied);
appendStringInfo(&buf,
- _("WAL usage: %" PRId64 " records, %" PRId64 " full page images, %" PRIu64 " bytes, %" PRId64 " buffers full\n"),
+ _("WAL usage: %" PRId64 " records, %" PRId64 " full page images, %" PRIu64 " bytes, %" PRIu64 " full page image bytes, %" PRId64 " buffers full\n"),
walusage.wal_records,
walusage.wal_fpi,
walusage.wal_bytes,
+ walusage.wal_fpi_bytes,
walusage.wal_buffers_full);
appendStringInfo(&buf, _("system usage: %s"), pg_rusage_show(&ru0));