Re: Proposal: Add a callback data parameter to GetNamedDSMSegment - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Date
Msg-id aTtIPvpRGCf-fWoM@nathan
Whole thread Raw
In response to Re: Proposal: Add a callback data parameter to GetNamedDSMSegment  (Sami Imseih <samimseih@gmail.com>)
Responses Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
List pgsql-hackers
Thanks for the new patch.

On Thu, Dec 11, 2025 at 04:12:02PM -0600, Sami Imseih wrote:
> I went back-forth on if it makes sense to provide the name as an
> extra argument and decided it provides more flexibility. For example
> I can use the same init callback and arguments for different segments.

If the initialization callback function needed the name, it could be
provided via the "void *" callback argument, right?  I'm not following why
we need to provide it separately.

-- 
nathan



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Fix uninitialized PruneFreezeResult in pruneheap and vacuumlazy
Next
From: Chao Li
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance