Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> Is there any reason for not handling T_TargetEntry node kind in
> exprType() function in nodeFuncs.c?
It's intentional because that's not considered an executable
expression.
> But why in this case it is handled in the exprLocation function?
There are lots of things that have syntactic locations but aren't
value-yielding expressions.
regards, tom lane