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

From Sami Imseih
Subject Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
Date
Msg-id CAA5RZ0u46iSv_CJP7NHap9dGT6kXMDF1E_88izbi=bEedtfsvg@mail.gmail.com
Whole thread Raw
In response to Re: Proposal: Add a callback data parameter to GetNamedDSMSegment  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Proposal: Add a callback data parameter to GetNamedDSMSegment
List pgsql-hackers
> My gut feeling is that this is an obscure enough use-case that this
> workaround is probably sufficient, but I am interested to hear more...

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.

--
Sami



pgsql-hackers by date:

Previous
From: Benjamin Leff
Date:
Subject: Re: Client-only Meson Build From Sources
Next
From: Masahiko Sawada
Date:
Subject: Re: Newly created replication slot may be invalidated by checkpoint