1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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.
This commit is contained in:
Tom Lane
2003-01-13 18:10:53 +00:00
parent de432ce39e
commit 56e1aab286
4 changed files with 34 additions and 53 deletions

View File

@ -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)