what exactly is a PlaceHolderVar?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема what exactly is a PlaceHolderVar?
Дата
Msg-id AANLkTinP01jOWUI2nTifW5OPqgO1Fsd27SqkjRLQ0HT0@mail.gmail.com
обсуждение исходный текст
Ответы Re: what exactly is a PlaceHolderVar?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I can't find any good documentation of this in the source tree
anywhere.  placeholder.c just says:
*        PlaceHolderVar and PlaceHolderInfo manipulation routines

and placeholder.h says:
*        prototypes for optimizer/util/placeholder.c.

...which is less than informative.  The commit message that introduced
them has a few details:
   Add a concept of "placeholder" variables to the planner.  These
are variables   that represent some expression that we desire to compute below the top level   of the plan, and then
letthat value "bubble up" as though it were a plain   Var (ie, a column value).
 

...but I'm still having a hard time wrapping my head around it.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


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

Предыдущее
От: "mac_man2005@hotmail.it"
Дата:
Сообщение: Re: About tapes
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: server authentication over Unix-domain sockets