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

From Andres Freund
Subject Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Date
Msg-id 20180606125943.25yyr2g2oag3z4gr@alap3.anarazel.de
Whole thread Raw
In response to Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
On 2018-06-05 17:11:17 -0400, Chapman Flack wrote:
> 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.)

Yes, it is at the moment.


> 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?

Yes, that's pretty much how it works.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: buildfarm vs code
Next
From: Andres Freund
Date:
Subject: Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?