From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change the signature of dynahash's alloc function
Date: Tue, 31 Mar 2026 14:17:53 +0000
Message-ID: <E1w7Zui-002Ju4-2F@gemulon.postgresql.org> (raw)
Change the signature of dynahash's alloc function
Instead of passing the current memory context to the alloc function
via a shared variable, pass it directly as an argument.
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://www.postgresql.org/message-id/01ab1d41-3eda-4705-8bbd-af898f5007f1@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b424e3108e4745ba7d37e358a1177911fa5a5ad
Modified Files
--------------
src/backend/storage/ipc/shmem.c | 16 ++++++++++--
src/backend/utils/hash/dynahash.c | 52 ++++++++++++++++++++-------------------
src/include/utils/hsearch.h | 8 +++---
3 files changed, 45 insertions(+), 31 deletions(-)
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: Change the signature of dynahash's alloc function
In-Reply-To: <E1w7Zui-002Ju4-2F@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