pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert pg_stat_statements to use the new shmem allocation funct
Date: Sun, 05 Apr 2026 23:27:43 +0000
Message-ID: <E1w9WsZ-00399x-0F@gemulon.postgresql.org> (raw)
Convert pg_stat_statements to use the new shmem allocation functions
As part of this, embed the LWLock it needs in the shared memory struct
itself, so that we don't need to use RequestNamedLWLockTranche()
anymore. LWLockNewTrancheId() + LWLockInitialize() is more convenient
to use in extensions.
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d4885af3d65325c1fcd319e98c634fde9a200443
Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 173 +++++++++++-------------
1 file changed, 77 insertions(+), 96 deletions(-)
Message-ID: <E1w9WsZ-00399x-0F@gemulon.postgresql.org>
Permalink: ../E1w9WsZ-00399x-0F@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9WsZ-00399x-0F@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: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Convert pg_stat_statements to use the new shmem allocation funct
In-Reply-To: <E1w9WsZ-00399x-0F@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