Hi,
On 2019-11-13 13:03:31 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Thinking about it for a second longer, I don't think we'd need a new
> > context - afaict argcontext has exactly the lifetime requirements
> > needed.
>
> Hm, maybe so. That'd definitely be a better solution if it works.
Here's a patch doing so. I think it'd be a good idea to rename
argcontext into something like setcontext or such. But as I'm not that
happy with the name, I've not yet made that change.
Greetings,
Andres Freund