injection_points: Enable entry count in its variable-sized stats
Michael Paquier <michael@paquier.xyz>
injection_points: Enable entry count in its variable-sized stats This serves as coverage for the tracking of entry count added by 7bd2975fa92b as built-in variable-sized stats kinds have no need for it, at least not yet. A new function, called injection_points_stats_count(), is added to the module. It is able to return the number of entries. This has been useful when doing some benchmarking to check the sanity of the counts. Author: Michael Paquier <michael@paquier.xyz> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/aMPKWR81KT5UXvEr@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/injection_points/injection_points--1.0.sql | modified | +10 −0 |
| src/test/modules/injection_points/injection_stats.c | modified | +12 −0 |
| src/test/modules/injection_points/t/001_stats.pl | modified | +12 −0 |
Discussion
- Add support for entry counting in pgstats 10 messages · 2025-09-12 → 2025-09-29