Re: Make pg_stat_io view count IOs as bytes instead of blocks - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: Make pg_stat_io view count IOs as bytes instead of blocks
Date
Msg-id CAN55FZ3_1LNrNXBtkeZqED6=JPYHRW+maemG+V_fGdMtivUd-A@mail.gmail.com
Whole thread Raw
In response to Re: Make pg_stat_io view count IOs as bytes instead of blocks  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Make pg_stat_io view count IOs as bytes instead of blocks
List pgsql-hackers
Hi,

On Tue, 14 Jan 2025 at 06:18, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Fri, Jan 10, 2025 at 08:23:46AM +0000, Bertrand Drouvot wrote:
> > On Fri, Jan 10, 2025 at 10:15:52AM +0300, Nazir Bilal Yavuz wrote:
> >> But I agree that having a macro has more benefits,
> >> also there already is a check for the 'io_op < IOOP_NUM_TYPES' in the
> >> pgstat_count_io_op() function.
> >
> > Yeah, I think we can remove the "io_op < IOOP_NUM_TYPE" assertion in
> > pgstat_count_io_op() (but keep this check as part of the macro).
> >
> > Appart from the above, LGTM.
>
> Okay, so applied.
>
> And I've somewhat managed to fat-finger the business with
> pgstat_count_io_op() with an incorrect rebase.  Will remove in a
> minute..

Thank you!

-- 
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: AIO v2.2
Next
From: Dean Rasheed
Date:
Subject: Re: psql: Add leakproof field to \dAo+ meta-command results