Konstantin Knizhnik <k.knizh...@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