Re: Lack of T_TargetEntry in exprType function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Lack of T_TargetEntry in exprType function
Date: 2018-03-20 14:00:11
Message-ID: 10242.1521554411@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2018-03-20 14:05:53 Re: INOUT parameters in procedures
Previous Message Michael Paquier 2018-03-20 13:57:20 Re: [PoC PATCH] Parallel dump to /dev/null