Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info? - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Date
Msg-id 28633227-fdc3-7bf3-c0a3-e7bf0aba8a1e@anastigmatix.net
Whole thread Raw
In response to Why is fncollation in FunctionCallInfoData rather than fmgr_info?  (Andres Freund <andres@anarazel.de>)
Responses Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
List pgsql-hackers
On 06/05/2018 04:57 PM, Andres Freund wrote:
> But we don't really change the
> collation of function invocations per-call. 

Is that true? (Not a rhetorical question; I'm unsure.)

Is your argument that the expression's collation is determined once
for each call /site/, and thereafter doesn't change over repeated
invocations via any one call site, and a unique FmgrInfo is
populated at each call site?

This is at the edges of my current understanding of how those gears
turn, so it could very well be true, but it seems to me that's how
the question would have to be put.

-Chap


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Next
From: Daniel Gustafsson
Date:
Subject: Re: automating perl compile time checking