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

From Tom Lane
Subject Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Date
Msg-id 4055.1528327012@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2018-06-06 21:25:14 +0100, Andrew Gierth wrote:
>> The obvious case which is not one of those "pretty much all cases" is
>> where DirectFunctionCallN[Coll] is used - which turns out to be not all
>> that unusual.

> There the callsite just lives for just one call, I don't really see that
> being an exception?

The problem with your proposal, for that case, is that there's no FmgrInfo
to put the collation into.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Why is fncollation in FunctionCallInfoData rather than fmgr_info?
Next
From: Claudio Freire
Date:
Subject: Re: POC: GROUP BY optimization