OSDN Git Service

Repair oversight in 8.2 change that improved the handling of "pseudoconstant"
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2007 03:07:13 +0000 (03:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2007 03:07:13 +0000 (03:07 +0000)
commitbfe553fb49f00ef74021ca044794f27c13511342
tree8e174f5148ef80fe44316d949748093b89e638a5
parentd19da98a7fd082f3369c4c8aa20a4b861400eed5
Repair oversight in 8.2 change that improved the handling of "pseudoconstant"
WHERE clauses.  createplan.c is now willing to stick a gating Result node
almost anywhere in the plan tree, and in particular one can wind up directly
underneath a MergeJoin node.  This means it had better be willing to handle
Mark/Restore.  Fortunately, that's trivial in such cases, since we can just
pass off the call to the input node (which the planner has previously ensured
can handle Mark/Restore).  Per report from Phil Frost.
src/backend/executor/execAmi.c
src/backend/executor/nodeResult.c
src/include/executor/nodeResult.h