aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/prep/prepunion.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-09-11 14:48:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-09-11 14:48:55 +0000
commit6fdc44be71e7732b4a9550d04befcc9144ef188f (patch)
tree31f001c17376b228922d1424c6b70e477318e2ad /src/backend/optimizer/prep/prepunion.c
parentd634a5903f615a45cb463155c04d3df904e1b91a (diff)
downloadpostgresql-6fdc44be71e7732b4a9550d04befcc9144ef188f.tar.gz
postgresql-6fdc44be71e7732b4a9550d04befcc9144ef188f.zip
Tweak querytree-dependency-extraction code so that columns of tables
that are explicitly JOINed are not considered dependencies unless they are actually used in the query: mere presence in the joinaliasvars list of a JOIN RTE doesn't count as being used. The patch touches a number of files because I needed to generalize the API of query_tree_walker to support an additional flag bit, but the changes are otherwise quite small.
Diffstat (limited to 'src/backend/optimizer/prep/prepunion.c')
-rw-r--r--src/backend/optimizer/prep/prepunion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/optimizer/prep/prepunion.c b/src/backend/optimizer/prep/prepunion.c
index fb4fd3e1d34..414e26c54cb 100644
--- a/src/backend/optimizer/prep/prepunion.c
+++ b/src/backend/optimizer/prep/prepunion.c
@@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.78 2002/09/04 20:31:22 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.79 2002/09/11 14:48:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -774,7 +774,7 @@ adjust_inherited_attrs(Node *node,
if (newnode->resultRelation == old_rt_index)
newnode->resultRelation = new_rt_index;
query_tree_mutator(newnode, adjust_inherited_attrs_mutator,
- (void *) &context, false);
+ (void *) &context, QTW_IGNORE_SUBQUERIES);
return (Node *) newnode;
}
else