From a4996a895399a4b0363c7dace71fc6ce8acbc196 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 5 Jun 2005 00:38:11 +0000 Subject: Replace the parser's namespace tree (which formerly had the same representation as the jointree) with two lists of RTEs, one showing the RTEs accessible by qualified names, and the other showing the RTEs accessible by unqualified names. I think this is conceptually simpler than what we did before, and it's sure a whole lot easier to search. This seems to eliminate the parse-time bottleneck for deeply nested JOIN structures that was exhibited by phil@vodafone. --- src/backend/commands/tablecmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/tablecmds.c') diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 4335792ee71..c7669dfc58f 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.159 2005/05/30 07:20:58 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.160 2005/06/05 00:38:08 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -4720,7 +4720,7 @@ ATPrepAlterColumnType(List **wqueue, NULL, false, true); - addRTEtoQuery(pstate, rte, false, true); + addRTEtoQuery(pstate, rte, false, true, true); transform = transformExpr(pstate, cmd->transform); -- cgit v1.2.3