Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?

From: Andres Freund <andres(at)anarazel(dot)de>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Date: 2018-06-06 12:59:43
Message-ID: 20180606125943.25yyr2g2oag3z4gr@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-06-06 13:06:25 Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Previous Message Andrew Dunstan 2018-06-06 12:47:06 Re: buildfarm vs code