diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-17 02:01:21 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-17 02:01:21 +0000 |
commit | a4d82dd4b4725c12a64d87967719f7690a054cbd (patch) | |
tree | 6f190e80d6fe8e4ced2593ab53407a852f4deb83 /src/backend/optimizer/plan/subselect.c | |
parent | 227a404cf4badc5b245a17c674658605d8aa9397 (diff) |
Adjust API of expression_tree_mutator and query_tree_mutator to
simplify callers. It turns out the common case is that the caller
does want to recurse into sub-queries, so push support for that into
these subroutines.
Diffstat (limited to 'src/backend/optimizer/plan/subselect.c')
-rw-r--r-- | src/backend/optimizer/plan/subselect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c index 3c72199777e..b30454dcae2 100644 --- a/src/backend/optimizer/plan/subselect.c +++ b/src/backend/optimizer/plan/subselect.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.66 2003/01/13 18:10:53 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.67 2003/01/17 02:01:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -628,12 +628,12 @@ process_sublinks_mutator(Node *node, bool *isTopQual) } /* - * Note that we will never see a SubPlan expression in the input - * (since this is the very routine that creates 'em to begin with). So - * the code in expression_tree_mutator() that might do inappropriate - * things with SubPlans or SubLinks will not be exercised. + * We should never see a SubPlan expression in the input (since this is + * the very routine that creates 'em to begin with). We shouldn't find + * ourselves invoked directly on a Query, either. */ Assert(!is_subplan(node)); + Assert(!IsA(node, Query)); /* * If we recurse down through anything other than a List node, we are |