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 10242.1521554411@sss.pgh.pa.us
Whole thread Raw
In response to Lack of T_TargetEntry in exprType function  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Lack of T_TargetEntry in exprType function  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PoC PATCH] Parallel dump to /dev/null
Next
From: Merlin Moncure
Date:
Subject: Re: INOUT parameters in procedures