Re: Proposal: Add a callback data parameter to GetNamedDSMSegment

Поиск
Список
Период
Сортировка
От Sami Imseih
Тема Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Дата
Msg-id CAA5RZ0vkHQyaP1wZUCpbx91_UvbRNVJwRxXRxkb8_fiwfSdO2w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal: Add a callback data parameter to GetNamedDSMSegment  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Список pgsql-hackers
> On Wed, Dec 03, 2025 at 02:27:29PM -0600, Sami Imseih wrote:
> > There are probably other good reasons to allow a generic argument
> > to the init callback. Besides the lwlock name, I can see someone
> > wanting to pass some other initialization info that may vary
> > depending on extension GUCs, etc.
>
> The value of a GUC could be obtained in the callback via the global
> variable or GetConfigOption(), right?

Yes, that's true. It will be hard to find other good use-cases that
can't be solved with a global variable, but we can also say this is
a low-cost change, so why not just do it.

--
Sami



В списке pgsql-hackers по дате отправления: