]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Convert pg_stat_statements to use the new shmem allocation functions
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:12:53 +0000 (02:12 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:12:53 +0000 (02:12 +0300)
commitd4885af3d65325c1fcd319e98c634fde9a200443
tree35ad234df0105be27486c5a6c977b18da895ead8
parent6409994c7dd8cc8c06c00882880e04cc895c28bd
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.com
contrib/pg_stat_statements/pg_stat_statements.c