diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-10 21:08:15 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-10 21:08:15 +0000 |
commit | e69785debfcca308a5999946bbf4cfefd0ab5e3c (patch) | |
tree | 067093f426b8034288590a71f538650b3c53d485 /src/backend/optimizer/util/var.c | |
parent | 36ea26793a14d016059de2f1c83a05cf87a8bb92 (diff) | |
download | postgresql-e69785debfcca308a5999946bbf4cfefd0ab5e3c.tar.gz postgresql-e69785debfcca308a5999946bbf4cfefd0ab5e3c.zip |
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.
Diffstat (limited to 'src/backend/optimizer/util/var.c')
-rw-r--r-- | src/backend/optimizer/util/var.c | 10 |
1 files changed, 5 insertions, 5 deletions
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, |