From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | what exactly is a PlaceHolderVar? |
Date: | 2010-06-21 20:29:53 |
Message-ID: | AANLkTinP01jOWUI2nTifW5OPqgO1Fsd27SqkjRLQ0HT0@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 let that 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
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2010-06-21 20:48:00 | Re: server authentication over Unix-domain sockets |
Previous Message | mac_man2005@hotmail.it | 2010-06-21 19:44:20 | Re: About tapes |