From cc77005df7177d9af1c23b7af1cac08102fcbca9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 22 Feb 2007 23:44:25 +0000 Subject: Change Agg and Group nodes so that Vars contained in their targetlists and quals have varno OUTER, rather than zero, to indicate a reference to an output of their lefttree subplan. This is consistent with the way that every other upper-level node type does it, and allows some simplifications in setrefs.c and EXPLAIN. --- src/backend/utils/adt/ruleutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/ruleutils.c') diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 064b8e07f76..2f61b4a9fc5 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.249 2007/02/14 01:58:57 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.250 2007/02/22 23:44:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2626,7 +2626,7 @@ get_rte_for_var(Var *var, int levelsup, deparse_context *context, /* * Try to find the relevant RTE in this rtable. In a plan tree, it's - * likely that varno is OUTER, INNER, or 0, in which case we try to use + * likely that varno is OUTER or INNER, in which case we try to use * varnoold instead. If the Var references an expression computed by a * subplan, varnoold will be 0, and we fall back to looking at the special * subplan RTEs. -- cgit v1.2.3