Re: Lack of T_TargetEntry in exprType function

2018-03-20 Thread Tom Lane
Konstantin Knizhnik 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 th

Re: Lack of T_TargetEntry in exprType function

2018-03-20 Thread Konstantin Knizhnik
On 20.03.2018 17:00, Tom Lane wrote: Konstantin Knizhnik 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. I tried to apply this function to the argument of Ag

Re: Lack of T_TargetEntry in exprType function

2018-03-20 Thread Tom Lane
Konstantin Knizhnik 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 thin

Lack of T_TargetEntry in exprType function

2018-03-20 Thread Konstantin Knizhnik
Is there any reason for not handling T_TargetEntry node kind in exprType() function in nodeFuncs.c? Is it considered as non-valid expression tag? But why in this case it is handled in the exprLocation function? -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian