Skip to content

Add wal_fpi_bytes to wal_stats metric#1402

Draft
nadashaban11 wants to merge 1 commit into
cybertec-postgresql:masterfrom
nadashaban11:wal-fpi
Draft

Add wal_fpi_bytes to wal_stats metric#1402
nadashaban11 wants to merge 1 commit into
cybertec-postgresql:masterfrom
nadashaban11:wal-fpi

Conversation

@nadashaban11

@nadashaban11 nadashaban11 commented May 7, 2026

Copy link
Copy Markdown
Contributor

Description

After reading https://postgr.es/c/f9a09aa29 I added wal_fpi_bytes to wal_stats metric
Fixes #1399

I've added wal_fpi_bytes to the wal_stats metric by adding a new SQL query block for version 19 (duplicating the version 18 query and adding the new column).

Also, from reading the commit, I noticed that wal_fpi_bytes is also available on pg_stat_get_backend_wal(), but pgwatch doesn't currently have backend-specific WAL stats metric, I didn't create a new metric for it.

I am opening this as a draft to make sure I correctly understood what's needed.

AI & Automation Policy

  • I am the human author and take full personal responsibility for every change in this PR.
  • No AI or automated generative tool was used in any part of this PR OR I have disclosed all tool(s) below.

AI/automation tools used (leave blank if none):

Checklist

  • Code compiles and existing tests pass locally.
  • New or updated tests are included where applicable.
  • Documentation is updated where applicable.

@pashagolub pashagolub added the metrics Metrics related issues label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metrics Metrics related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add reporting of the bytes written to WAL for full page images

2 participants