From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: injection_points: Add stats for point caching and loading
Date: Mon, 19 Aug 2024 00:04:15 +0000
Message-ID: <E1sfpsd-000M1o-47@gemulon.postgresql.org> (raw)
injection_points: Add stats for point caching and loading
This adds two counters to the fixed-numbered stats of injection points
to track the number of times injection points have been cached and
loaded from the cache, as of the additions coming from a0a5869a8598 and
4b211003ecc2.
These should have been part of f68cd847fa40, but I have lacked time and
energy back then, and it did not prevent the code to be a useful
template.
While on it, this commit simplifies the description of a few tests while
adding coverage for the new stats data.
Author: Yogesh Sharma
Discussion: https://postgr.es/m/3a6977f7-54ab-43ce-8806-11d5e15526a2@catprosystems.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2793acecee340aa9582e0f3efe9ff6cb4b5bdf5a
Modified Files
--------------
.../injection_points/injection_points--1.0.sql | 4 +++-
.../modules/injection_points/injection_points.c | 8 +++++---
.../modules/injection_points/injection_stats.h | 4 +++-
.../injection_points/injection_stats_fixed.c | 24 ++++++++++++++++++----
src/test/modules/injection_points/t/001_stats.pl | 18 ++++++++++++----
5 files changed, 45 insertions(+), 13 deletions(-)
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: Add stats for point caching and loading
In-Reply-To: <E1sfpsd-000M1o-47@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