Re: UNION ALL - Var attno - Mailing list pgsql-hackers

From Tom Lane
Subject Re: UNION ALL - Var attno
Date
Msg-id 26053.1461904412@sss.pgh.pa.us
Whole thread Raw
In response to UNION ALL - Var attno  (sri harsha <sriharsha9992@gmail.com>)
Responses Re: UNION ALL - Var attno
List pgsql-hackers
sri harsha <sriharsha9992@gmail.com> writes:
>    Assume the following query ,
> (SELECT a * 1 , b FROM TABLE_1) UNION ALL (SELECT a *1 , b FROM TABLE_2);

> In this query , attribute number of the VARs are 141 and 2 respectively !!

I doubt it.

Maybe you're looking at something that's not a Var, possibly an OpExpr,
but assuming it's a Var?  The fact that 141 is the pg_proc OID of int4mul
lends considerable weight to this suspicion ...
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: VS 2015 support in src/tools/msvc
Next
From: Tom Lane
Date:
Subject: Re: VS 2015 support in src/tools/msvc