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 CAA5RZ0u33MRGh3Gk1ZV8z5p3oVb0jSxXr-ojee-n0rL7Brq1hA@mail.gmail.com
Whole thread Raw
In response to Re: Proposal: Add a callback data parameter to GetNamedDSMSegment  (Zsolt Parragi <zsolt.parragi@percona.com>)
List pgsql-hackers
> On a slightly related topic, I mentioned earlier that I found 3
> extensions using GetNamedDSMSegment. One of them,
> pg_track_optimizer[1] could use the new GetNamedDSHash function,
> except that it doesn't provide a callback similar to what we have in
> c, and it relies on initializing the hash in the
> callback, before it returns. That's not possible with the new
> function.
>
> What do you think, would it make sense to also include callbacks for
> GetNamedDSHash and GetNamedDSA?
>
> [1]: https://github.com/danolivo/pg_track_optimizer/

GetNamedDSA and GetNamedDSHash do not have a need for a callback,
because there isn't custom initialization logic that can be applied there.

--
Sami Imseih
Amazon Web Services (AWS)



pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: Proposal to allow setting cursor options on Portals
Next
From: Ajin Cherian
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance