From e18e8f873594fd4ff2f12e734a624102d3ef1e39 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 4 Jun 2005 19:19:42 +0000 Subject: Change expandRTE() and ResolveNew() back to taking just the single RTE of interest, rather than the whole rangetable list. This makes the API more understandable and avoids duplicate RTE lookups. This patch reverts no-longer-needed portions of my patch of 2004-08-19. --- src/backend/optimizer/util/plancat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/optimizer/util/plancat.c') diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c index 35277073569..a86bdbfb61d 100644 --- a/src/backend/optimizer/util/plancat.c +++ b/src/backend/optimizer/util/plancat.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.109 2005/05/30 18:55:49 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.110 2005/06/04 19:19:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -451,7 +451,7 @@ build_physical_tlist(Query *root, RelOptInfo *rel) break; case RTE_FUNCTION: - expandRTE(root->rtable, varno, 0, true /* include dropped */, + expandRTE(rte, varno, 0, true /* include dropped */, NULL, &colvars); foreach(l, colvars) { -- cgit v1.2.3