Re: UNION ALL - Var attno

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UNION ALL - Var attno
Дата
Msg-id 12413.1461936923@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UNION ALL - Var attno  (sri harsha <sriharsha9992@gmail.com>)
Список pgsql-hackers
sri harsha <sriharsha9992@gmail.com> writes:
> Its not an OpExpr . It is a VAR , got it from "reltargetlist" in base
> relation ( RelOptInfo) .

Read the comment:
*        reltargetlist - List of Var and PlaceHolderVar nodes for the values*                        we need to output
fromthis relation.*                        List is in no particular order, but all rels of an*
appendrelset must use corresponding orders.*                        NOTE: in an appendrel child relation, may contain*
                     arbitrary expressions pulled up from a subquery!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In general, it's seldom a good idea to assume that a Node is of a specific
type without having confirmed that with an IsA() check.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: pgsql: Support building with Visual Studio 2015
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [sqlsmith] Failed assertion in BecomeLockGroupLeader