pgsql: injection_points: Add routine able to drop all stats - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: injection_points: Add routine able to drop all stats
Date
Msg-id E1tdhvv-004Xkj-V8@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Use "ssize_t" not "long" in max_stack_depth-related code.
Next
From: Amit Langote
Date:
Subject: pgsql: Perform runtime initial pruning outside ExecInitNode()