Re: Proposal: Add a callback data parameter to GetNamedDSMSegment

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Дата
Msg-id aTtIPvpRGCf-fWoM@nathan
обсуждение исходный текст
Ответ на Re: Proposal: Add a callback data parameter to GetNamedDSMSegment  (Sami Imseih <samimseih@gmail.com>)
Ответы Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Список 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 по дате отправления: