From e69785debfcca308a5999946bbf4cfefd0ab5e3c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Jan 2003 21:08:15 +0000 Subject: Further tweaking of parsetree & plantree representation of SubLinks. Simplify SubLink by storing just a List of operator OIDs, instead of a list of incomplete OpExprs --- that was a bizarre and bulky choice, with no redeeming social value since we have to build new OpExprs anyway when forming the plan tree. --- src/backend/optimizer/util/var.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/optimizer/util/var.c') diff --git a/src/backend/optimizer/util/var.c b/src/backend/optimizer/util/var.c index e4868af11cd..92ff0cd5b4c 100644 --- a/src/backend/optimizer/util/var.c +++ b/src/backend/optimizer/util/var.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/var.c,v 1.42 2002/12/14 00:17:59 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/var.c,v 1.43 2003/01/10 21:08:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -107,13 +107,13 @@ pull_varnos_walker(Node *node, pull_varnos_context *context) { /* * Already-planned subquery. Examine the args list (parameters to - * be passed to subquery), as well as the "oper" list which is + * be passed to subquery), as well as the exprs list which is * executed by the outer query. But short-circuit recursion into * the subquery itself, which would be a waste of effort. */ SubPlan *subplan = (SubPlan *) node; - if (pull_varnos_walker((Node *) subplan->oper, + if (pull_varnos_walker((Node *) subplan->exprs, context)) return true; if (pull_varnos_walker((Node *) subplan->args, @@ -190,13 +190,13 @@ contain_var_reference_walker(Node *node, { /* * Already-planned subquery. Examine the args list (parameters to - * be passed to subquery), as well as the "oper" list which is + * be passed to subquery), as well as the exprs list which is * executed by the outer query. But short-circuit recursion into * the subquery itself, which would be a waste of effort. */ SubPlan *subplan = (SubPlan *) node; - if (contain_var_reference_walker((Node *) subplan->oper, + if (contain_var_reference_walker((Node *) subplan->exprs, context)) return true; if (contain_var_reference_walker((Node *) subplan->args, -- cgit v1.2.3