Re: Lack of T_TargetEntry in exprType function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Lack of T_TargetEntry in exprType function
Date
Msg-id 12279.1521556988@sss.pgh.pa.us
Whole thread Raw
In response to Re: Lack of T_TargetEntry in exprType function  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> On 20.03.2018 17:00, Tom Lane wrote:
>> It's intentional because that's not considered an executable
>> expression.

> I tried to apply this function to the argument of Aggref and it has 
> exactly this kind.
> Aggref is executable expression. This is why I thought that all its 
> arguments also should be considered as executable expressions, shouldn't 
> they?

Not really.  They're a list of executable expressions, which is not the
same thing --- in particular, exprType() on the whole list wouldn't give a
useful result.  The TargetEntrys are best thought of as part of the list
superstructure.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: XID-assigned idle transactions affect vacuum's job.
Next
From: Jeevan Chalke
Date:
Subject: Re: [HACKERS] Partition-wise aggregation/grouping