]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Restrict pg_stat_io entries for data checksum processes
authorFujii Masao <fujii@postgresql.org>
Fri, 17 Jul 2026 11:16:34 +0000 (20:16 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 17 Jul 2026 11:17:50 +0000 (20:17 +0900)
commit3aa54433b0cdce48facb610a5b720208cc760654
tree261fad1dc2bdfc4029d4c4fd1b45759bb899452b
parent2572fc53128cdbd262bf91fb2e302e0c4459be6f
Restrict pg_stat_io entries for data checksum processes

The data checksums launcher and workers were exposed in pg_stat_io
with the same broad set of object/context combinations as general
background workers. However, several of those entries can never
accumulate I/O statistics for these processes, such as bulkwrite,
relation init, temporary relation, and launcher vacuum entries.

Teach pgstat_tracks_io_object() and pgstat_tracks_io_op() about the
actual I/O performed by the data checksum processes. Keep the entries
needed for catalog scans, including bulkread catalog scans, worker
relation processing with a vacuum access strategy, and WAL writes and
initialization, while excluding WAL reads and other object/context
combinations that can never be used.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAHGQGwHz_-nt+YkHDMRZNBZrnoHro8cMOgSwuXEmSYT6vxgQ=w@mail.gmail.com
Backpatch-through: 19
src/backend/utils/activity/pgstat_io.c
src/test/regress/expected/stats.out