Re: Make pg_stat_io view count IOs as bytes instead of blocks
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, Melanie Plageman <melanieplageman@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-01-09T08:11:02Z
Lists: pgsql-hackers
On Thu, Jan 09, 2025 at 10:15:20AM +0300, Nazir Bilal Yavuz wrote: > I am a bit confused, are you suggesting these two alternatives: > 1- Making pgstat_count_io_op_n() static and continuing to use > pgstat_count_io_op() as it is. > 2- Removing pgstat_count_io_op() and instead using > pgstat_count_io_op_n() everywhere. Either of these options is OK by me. The current state of things just seems a bit strange because we publish a routine that's used nowhere. If you have plans for it in a different patch, that's also fine. -- Michael
Commits
-
Rework macro pgstat_is_ioop_tracked_in_bytes()
- 7b6468cc9523 18.0 landed
-
Remove assertion in pgstat_count_io_op()
- d2181b321852 18.0 landed
-
Make pg_stat_io count IOs as bytes instead of blocks for some operations
- f92c854cf406 18.0 landed
-
Merge pgstat_count_io_op_n() and pgstat_count_io_op()
- f0bf7857befe 18.0 landed