| From: | Shinya Kato <shinya11(dot)kato(at)gmail(dot)com> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add wal_fpi_bytes_[un]compressed to pg_stat_wal |
| Date: | 2025-10-23 09:36:01 |
| Message-ID: | CAOzEurSJzWGkcpyv1Je64h24oemNjjn2=183gx04sB3M_hiOMA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Oct 22, 2025 at 5:45 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> We already know the number of FPIs generated. Hence my take would be
> to use only one counter, not two: an aggregated FPI length like in
> xlogstats.h as exposed in pg_walinspect. That should be enough to
> offer trends regarding the effects of compression, even if some pages
> have holes that are discarded.
Yeah, I would like to know the trends of FPI compression rates, not
the exact FPI compression rates. So, I agree with Michael, and have
updated the patches.
> I would suggest to leave PGSS out of it for now. We really need to do
> something about the number of fields computed, with more GUCs to
> disable groups of them, at least, like JIT or the planning parts. No
> objections for the EXPLAIN and pg_stat_wal parts.
Okay, since I'm not strongly attached to this idea, I've removed the
0003 patch for now.
> The patch can be simpler. There is no need to pass the calculated
> number(s) across multiple functions in the stack, you can just
> aggregate the numbers in pgWalUsage directly in XLogRecordAssemble().
> The only extra thing to do is that one needs to set
> pgstat_report_fixed to true to force the report to pgstats.
Thank you for your review. I've implemented this suggestion in the v2 patches.
--
Best regards,
Shinya Kato
NTT OSS Center
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Add-wal_fpi_bytes-to-pg_stat_wal.patch | application/octet-stream | 8.9 KB |
| v2-0002-Expose-WAL-FPI-byte-totals-in-EXPLAIN.patch | application/octet-stream | 3.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jelte Fennema-Nio | 2025-10-23 09:40:12 | Re: CI: Add task that runs pgindent |
| Previous Message | Shlok Kyal | 2025-10-23 09:28:11 | Re: issue with synchronized_standby_slots |