pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add helper routines to retrieve data for custom fixed-numbered p
Date: Mon, 05 Aug 2024 02:48:03 +0000
Message-ID: <E1sanlT-002iut-19@gemulon.postgresql.org> (raw)

Add helper routines to retrieve data for custom fixed-numbered pgstats

This is useful for extensions to get snapshot and shmem data for custom
cumulative statistics when these have a fixed number of objects, so as
these do not need to know about the snapshot internals, aka pgStatLocal.

An upcoming commit introducing an example template for custom cumulative
stats with fixed-numbered objects will make use of these.  I have
noticed that this is useful for extension developers while hacking my
own example, actually.

Author: Michael Paquier
Reviewed-by: Dmitry Dolgov, Bertrand Drouvot
Discussion: https://postgr.es/m/Zmqm9j5EO0I4W8dx@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2eff9e678d350882f7a4b6ec6361927c9093051c

Modified Files
--------------
src/include/utils/pgstat_internal.h | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)



Message-ID: <E1sanlT-002iut-19@gemulon.postgresql.org>
Permalink:  ../E1sanlT-002iut-19@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sanlT-002iut-19@gemulon.postgresql.org

 · 

reply

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 helper routines to retrieve data for custom fixed-numbered p
  In-Reply-To: <E1sanlT-002iut-19@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