Re: Make pg_stat_io view count IOs as bytes instead of blocks

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Make pg_stat_io view count IOs as bytes instead of blocks
Date: 2025-01-16 07:57:19
Message-ID: Z4i73_jrNETRzaYZ@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 16, 2025 at 07:12:34AM +0000, Bertrand Drouvot wrote:
> From what I can see, the above proposal does (at least) silent the warning
> here (clang 5.0.1 and same as demoiselle): https://godbolt.org/z/cGosfzGne (we
> can see the warning by using the current define and that the warning is gone
> with the new define).

Forgot this trick, thanks for the reminder. I'll check all that
tomorrow.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2025-01-16 07:58:48 Re: Inquiry About Determining Parallel Plans for REFRESH MATERIALIZED VIEW
Previous Message Michael Paquier 2025-01-16 07:50:09 Re: An improvement of ProcessTwoPhaseBuffer logic