Re: UNION ALL - Var attno

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UNION ALL - Var attno
Дата
Msg-id 26053.1461904412@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UNION ALL - Var attno  (sri harsha <sriharsha9992@gmail.com>)
Ответы Re: UNION ALL - Var attno  (sri harsha <sriharsha9992@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: VS 2015 support in src/tools/msvc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: VS 2015 support in src/tools/msvc