| From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Allow passing a pointer to GetNamedDSMSegment()'s init callback. |
| Date: | 2025-12-15 20:28:19 |
| Message-ID: | E1vVFB4-000xk8-0B@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)parragi(at)percona(dot)com>
Reviewed-by: Sami Imseih <samimseih(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jacob Champion | 2025-12-15 22:28:44 | pgsql: libpq: Align oauth_json_set_error() with other NLS patterns |
| Previous Message | Noah Misch | 2025-12-15 20:21:26 | pgsql: Correct comments of "Fix data loss at inplace update after heap_ |