Hi, On Tue, Aug 18, 2026 at 01:01:25PM -0500, Sami Imseih wrote: > > I think we should keep a single struct but split it into two contiguous > regions, non-transactional first and transactional after, with comments > marking the boundary, and use an offset to compare each group on its own.
FWIW, I'd vote for an helper comparing the five counters that can be flushed immediately. There are only five, and adding another one would already require updating the merge and baseline logic. That would keep the policy local to pgstat_relation_flush_cb() and avoid making PgStat_TableCounts field order part of the flush logic. That said, let's see what Michael thinks. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
