From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: injection_points: Enable entry count in its variable-sized stats
Date: Mon, 29 Sep 2025 00:08:32 +0000
Message-ID: <E1v31RP-000Xpq-34@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/acf0960c23090ea6690f2c5da3bc2625836516a9
Modified Files
--------------
src/test/modules/injection_points/injection_points--1.0.sql | 10 ++++++++++
src/test/modules/injection_points/injection_stats.c | 12 ++++++++++++
src/test/modules/injection_points/t/001_stats.pl | 12 ++++++++++++
3 files changed, 34 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: injection_points: Enable entry count in its variable-sized stats
In-Reply-To: <E1v31RP-000Xpq-34@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox