diff options
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 52 |
1 files changed, 2 insertions, 50 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index fb5adb35abc..8654c11ad8b 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.50 1997/10/25 01:10:16 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.51 1997/11/02 15:25:45 vadim Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -495,54 +495,6 @@ pg_plan(char *query_string, /* string to execute */ querytree_list = new_list; - /* ---------------- - * Fix time range quals - * this _must_ go here, because it must take place after rewrites - * ( if they take place ) so that time quals are usable by the executor - * - * Also, need to frob the range table entries here to plan union - * queries for archived relations. - * ---------------- - */ - for (i = 0; i < querytree_list->len; i++) - { - List *l; - List *rt = NULL; - - querytree = querytree_list->qtrees[i]; - - /* ---------------- - * utilities don't have time ranges - * ---------------- - */ - if (querytree->commandType == CMD_UTILITY) - continue; - - rt = querytree->rtable; - - foreach(l, rt) - { - RangeTblEntry *rte = lfirst(l); - TimeRange *timequal = rte->timeRange; - - if (timequal) - { - int timecode = (rte->timeRange->endDate == NULL) ? 0 : 1; - - rte->timeQual = makeTimeRange(rte->timeRange->startDate, - rte->timeRange->endDate, - timecode); - } - else - { - rte->timeQual = NULL; - } - } - - /* check for archived relations */ - plan_archive(rt); - } - if (DebugPrintRewrittenParsetree == true) { printf("\n---- \tafter rewriting:\n"); @@ -1391,7 +1343,7 @@ PostgresMain(int argc, char *argv[]) if (IsUnderPostmaster == false) { puts("\nPOSTGRES backend interactive interface"); - puts("$Revision: 1.50 $ $Date: 1997/10/25 01:10:16 $"); + puts("$Revision: 1.51 $ $Date: 1997/11/02 15:25:45 $"); } /* ---------------- |