summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/plan/planner.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-01-13 18:10:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-01-13 18:10:53 +0000
commit56e1aab286ac841ac9404fc6b1c4f112259b6302 (patch)
tree8adb6d48e38a848e191b7f70bb4570fa2085dbb5 /src/backend/optimizer/plan/planner.c
parentde432ce39ee6a41e0e4b3a28a4f946e0725349ff (diff)
Reconsider mechanism for marking sub-selects that are at top level of
a qualification clause (and hence can get away with being sloppy about distinguishing FALSE from UNKNOWN). We need to know this in subselect.c; marking the subplans in setrefs.c is too late.
Diffstat (limited to 'src/backend/optimizer/plan/planner.c')
-rw-r--r--src/backend/optimizer/plan/planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c
index 3b8981021af..76a16cd833d 100644
--- a/src/backend/optimizer/plan/planner.c
+++ b/src/backend/optimizer/plan/planner.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.137 2003/01/13 00:29:25 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.138 2003/01/13 18:10:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -777,7 +777,7 @@ preprocess_expression(Query *parse, Node *expr, int kind)
/* Expand SubLinks to SubPlans */
if (parse->hasSubLinks)
- expr = SS_process_sublinks(expr);
+ expr = SS_process_sublinks(expr, (kind != EXPRKIND_TARGET));
/* Replace uplevel vars with Param nodes */
if (PlannerQueryLevel > 1)