injection_points: Add routine able to drop all stats
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/test/modules/injection_points/injection_points--1.0.sql | modified | +10 −0 |
| src/test/modules/injection_points/injection_stats.c | modified | +19 −0 |
| src/test/modules/injection_points/t/001_stats.pl | modified | +13 −0 |
Discussion
- [PATCH] Optionally record Plan IDs to track plan changes for a query 45 messages · 2025-01-02 → 2026-03-19