Add regression test checking combinations of (object,backend_type,context) in pg_stat_io

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Add regression test checking combinations of (object,backend_type,context) in pg_stat_io
Date: 2025-03-05 02:05:48
Message-ID: Z8exfAehbVbEKXW5@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

While working on I/O statistics, I have noticed that it is not
complicated to break the set of rows returned by pg_stat_io if one is
not careful when updating pgstat_tracks_io_object().

Attached is a patch that I've found useful as a sanity check,
returning all the combinations supported for BackendType, IOContext
and IOObject, so as it is easily possible to evaluate if the
information returned is relevant.

Thoughts?
--
Michael

Attachment Content-Type Size
statio-regress-check.patch text/x-diff 3.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2025-03-05 02:22:37 Re: Wrong results with subquery pullup and grouping sets
Previous Message Richard Guo 2025-03-05 02:02:41 Wrong results with subquery pullup and grouping sets