From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pgstat_drop_matching_entries() to pgstats
Date: Fri, 31 Jan 2025 03:27:31 +0000
Message-ID: <E1tdhgo-004XPH-T8@gemulon.postgresql.org> (raw)
Add pgstat_drop_matching_entries() to pgstats
This allows users of the cumulative statistics to drop entries in the
shared hash stats table, deleting as well local references. Callers of
this function can optionally define a callback able to filter which
entries to drop, similarly to pgstat_reset_matching_entries() with its
callback do_reset().
pgstat_drop_all_entries() is refactored so as it uses this new function.
Author: Lukas Fitti
Discussion: https://postgr.es/m/CAP53PkwuFbo3NkwZgxwNRMjMfqPEqidD-SggaoQ4ijotBVLJAA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ce5c620fb6252dca00d3856d5f09d56c7f1215d0
Modified Files
--------------
src/backend/utils/activity/pgstat_shmem.c | 31 ++++++++++++++++++++++++++++++-
src/include/utils/pgstat_internal.h | 2 ++
2 files changed, 32 insertions(+), 1 deletion(-)
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: Add pgstat_drop_matching_entries() to pgstats
In-Reply-To: <E1tdhgo-004XPH-T8@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