pgsql: injection_points: Add stats for point caching and loading

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: injection_points: Add stats for point caching and loading
Date: 2024-08-19 00:04:15
Message-ID: E1sfpsd-000M1o-47@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2024-08-19 01:04:44 pgsql: Search for SLRU page only in its own bank
Previous Message Thomas Munro 2024-08-18 23:47:58 pgsql: ci: Upgrade MacPorts version to 2.10.1.