pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow passing a pointer to GetNamedDSMSegment()'s init callback.
Date: Mon, 15 Dec 2025 20:28:19 +0000
Message-ID: <E1vVFB4-000xk8-0B@gemulon.postgresql.org> (raw)

Allow passing a pointer to GetNamedDSMSegment()'s init callback.

This commit adds a new "void *arg" parameter to
GetNamedDSMSegment() that is passed to the initialization callback
function.  This is useful for reusing an initialization callback
function for multiple DSM segments.

Author: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/CAN4CZFMjh8TrT9ZhWgjVTzBDkYZi2a84BnZ8bM%2BfLPuq7Cirzg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48d4a1423d2e92d10077365532d92e059ba2eb2e

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c                       | 4 ++--
doc/src/sgml/xfunc.sgml                                | 9 ++++++---
src/backend/storage/ipc/dsm_registry.c                 | 8 +++++---
src/include/storage/dsm_registry.h                     | 4 ++--
src/test/modules/injection_points/injection_points.c   | 6 +++---
src/test/modules/test_dsa/test_dsa.c                   | 6 +++---
src/test/modules/test_dsm_registry/test_dsm_registry.c | 7 +++++--
7 files changed, 26 insertions(+), 18 deletions(-)



Message-ID: <E1vVFB4-000xk8-0B@gemulon.postgresql.org>
Permalink:  ../E1vVFB4-000xk8-0B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vVFB4-000xk8-0B@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: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Allow passing a pointer to GetNamedDSMSegment()'s init callback.
  In-Reply-To: <E1vVFB4-000xk8-0B@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