injection_points: Add routine able to drop all stats

Michael Paquier <michael@paquier.xyz>

Commit: a632cd354d35e1c3352061c375b4458876c9f10a
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-01-31T03:41:39Z
Releases: 18.0
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

Files

Discussion