Re-introduce pgstat_drop_entry(), keeping ABI compatibility
Michael Paquier <michael@paquier.xyz>
Re-introduce pgstat_drop_entry(), keeping ABI compatibility This routine acts as a wrapper of a new pgstat_drop_entry_ext(), used in the core code with a missing_ok argument. This includes an update of .abi-compliance-history, removing the latest entry that has documented the change of pgstat_drop_entry(). This change is applied across v15~v18. HEAD keeps pgstat_drop_entry() as single entry point, with the new missing_ok. Per discussion with Álvaro Herrera and Lukas Fittl. This is a follow-up of 850b9218c8e4. Discussion: https://postgr.es/m/ajZz_sVJVX7pmPHo@alvherre.pgsql Backpatch-through: 15-18
Files
| Path | Change | +/− |
|---|---|---|
| .abi-compliance-history | modified | +0 −9 |
| src/backend/utils/activity/pgstat.c | modified | +1 −1 |
| src/backend/utils/activity/pgstat_function.c | modified | +2 −2 |
| src/backend/utils/activity/pgstat_replslot.c | modified | +2 −2 |
| src/backend/utils/activity/pgstat_shmem.c | modified | +14 −3 |
| src/backend/utils/activity/pgstat_xact.c | modified | +4 −4 |
| src/include/utils/pgstat_internal.h | modified | +3 −2 |
| src/test/modules/injection_points/injection_stats.c | modified | +2 −2 |
Discussion
- BUG #19520: PANIC when concurrently manipulating stored procedures with pg_stat_statements and track_functions = 17 messages · 2026-06-14 → 2026-06-22