pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: injection_points: Add routine able to drop all stats
Date: Fri, 31 Jan 2025 03:43:08 +0000
Message-ID: <E1tdhvv-004Xkj-V8@gemulon.postgresql.org> (raw)

injection_points: Add routine able to drop all stats

This serves as an example of how to use the new function introduced in
ce5c620fb625, pgstat_drop_matching_entries(), with a callback able to
filter the entries dropped.

A SQL function named injection_points_stats_drop() is added with some
tests.

Author: Lukas Fitti
Discussion: https://postgr.es/m/CAP53PkwuFbo3NkwZgxwNRMjMfqPEqidD-SggaoQ4ijotBVLJAA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a632cd354d35e1c3352061c375b4458876c9f10a

Modified Files
--------------
.../injection_points/injection_points--1.0.sql        | 10 ++++++++++
src/test/modules/injection_points/injection_stats.c   | 19 +++++++++++++++++++
src/test/modules/injection_points/t/001_stats.pl      | 13 +++++++++++++
3 files changed, 42 insertions(+)



Message-ID: <E1tdhvv-004Xkj-V8@gemulon.postgresql.org>
Permalink:  ../E1tdhvv-004Xkj-V8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tdhvv-004Xkj-V8@gemulon.postgresql.org

 · 

reply

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 routine able to drop all stats
  In-Reply-To: <E1tdhvv-004Xkj-V8@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