Re: Proposal: Add a callback data parameter to GetNamedDSMSegment

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Zsolt Parragi <zsolt.parragi@percona.com>
Cc: Sami Imseih <samimseih@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-12T16:07:14Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Allow passing a pointer to GetNamedDSMSegment()'s init callback.

  2. Move dynamically-allocated LWLock tranche names to shared memory.

On Fri, Dec 12, 2025 at 07:10:24AM +0000, Zsolt Parragi wrote:
>> GetNamedDSA and GetNamedDSHash do not have a need for a callback,
>> because there isn't custom initialization logic that can be applied there.
> 
> The use case for GetNamedDSHash is:

I'm going to stay focused on the GetNamedDSMSegment() argument for now, but
would like to consider this (perhaps in a new thread) afterwards.

-- 
nathan