Re: Add support for entry counting in pgstats

Keisuke Kuroda <keisuke.kuroda.3862@gmail.com>

From: Keisuke Kuroda <keisuke.kuroda.3862@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Sami Imseih <samimseih@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-09-24T02:37:25Z
Lists: pgsql-hackers
Testing via the Injection Point has been successfully completed.

> The option is named track_counts.
Regarding the option name track_counts in PgStat_KindInfo.
In my personal opinion, I was just wondering that it shares
the same name as the GUC track_counts(pgstat_track_counts in the source code).
If we want to make it clearer, renaming it to track_entry_counts
could be one option.
(That said, I feel the GUC track_counts option has a mismatch
between its role and its name...)

Best Regards,
-- 
Keisuke Kuroda
NTT DOCOMO SOLUTIONS, Inc.



Commits

  1. injection_points: Enable entry count in its variable-sized stats

  2. Add support for tracking of entry count in pgstats

  3. Keep track of what RTIs a Result node is scanning.