Improve comment on top of pgstat_count_io_op_time()

Michael Paquier <michael@paquier.xyz>

Commit: b998fedab74c6cf4e564c17f4171881759a093ee
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-02-03T02:19:58Z
Releases: 18.0
Improve comment on top of pgstat_count_io_op_time()

This commit adds more documentation to pgstat_count_io_op_time() in
pgstat_io.c, explaining its internals for pgstat_count_buffer_*(),
pgBufferUsage and the contexts where these are used.

Extracted from a larger patch by the same author.

Author: Nazir Bilal Yavuz
Discussion: https://postgr.es/m/CAN55FZ3AiQ+ZMxUuXnBpd0Rrh1YhwJ5FudkHg=JU0P+-W8T4Vg@mail.gmail.com

Files

PathChange+/−
src/backend/utils/activity/pgstat_io.c modified +8 −0

Discussion