pgsql: Change the signature of dynahash's alloc function

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change the signature of dynahash's alloc function
Date: 2026-03-31 14:17:53
Message-ID: E1w7Zui-002Ju4-2F@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)vondra(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-03-31 15:23:36 pgsql: Doc: improve explanation of GiST compress/decompress methods.
Previous Message Christoph Berg 2026-03-31 13:14:01 Re: pgsql: test_aio: Add basic tests for StartReadBuffers()