diff options
author | Marc G. Fournier <scrappy@hub.org> | 1999-08-02 06:27:09 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1999-08-02 06:27:09 +0000 |
commit | 2dca8973feb4bd089b6654d4cc67b0542fdfdbb2 (patch) | |
tree | 0bfb1e55125698412915c622887bb147914e5f92 /src/backend/optimizer/plan | |
parent | 10ace1fac8d9f2aa887a1095340e218430928fce (diff) |
Final round before bed...more tomorrow...
Diffstat (limited to 'src/backend/optimizer/plan')
-rw-r--r-- | src/backend/optimizer/plan/initsplan.c | 24 | ||||
-rw-r--r-- | src/backend/optimizer/plan/planmain.c | 27 | ||||
-rw-r--r-- | src/backend/optimizer/plan/planner.c | 41 | ||||
-rw-r--r-- | src/backend/optimizer/plan/setrefs.c | 15 | ||||
-rw-r--r-- | src/backend/optimizer/plan/subselect.c | 17 |
5 files changed, 28 insertions, 96 deletions
diff --git a/src/backend/optimizer/plan/initsplan.c b/src/backend/optimizer/plan/initsplan.c index 059f52e5bf4..f2714e83885 100644 --- a/src/backend/optimizer/plan/initsplan.c +++ b/src/backend/optimizer/plan/initsplan.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.31 1999/05/25 22:41:39 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.31.2.1 1999/08/02 06:27:01 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -15,27 +15,17 @@ #include "postgres.h" -#include "nodes/pg_list.h" -#include "nodes/plannodes.h" -#include "nodes/parsenodes.h" -#include "nodes/relation.h" -#include "nodes/makefuncs.h" - -#include "access/htup.h" - +#include "postgres.h" #include "catalog/pg_type.h" - -#include "utils/lsyscache.h" -#include "utils/palloc.h" - -#include "optimizer/internal.h" -#include "optimizer/planmain.h" +#include "nodes/makefuncs.h" +#include "optimizer/clauses.h" +#include "optimizer/cost.h" #include "optimizer/joininfo.h" #include "optimizer/pathnode.h" +#include "optimizer/planmain.h" #include "optimizer/tlist.h" #include "optimizer/var.h" -#include "optimizer/clauses.h" -#include "optimizer/cost.h" +#include "utils/lsyscache.h" extern int Quiet; diff --git a/src/backend/optimizer/plan/planmain.c b/src/backend/optimizer/plan/planmain.c index 80eaaf9a055..26232fa45d0 100644 --- a/src/backend/optimizer/plan/planmain.c +++ b/src/backend/optimizer/plan/planmain.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.37 1999/06/12 19:38:30 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.37.2.1 1999/08/02 06:27:02 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -15,31 +15,14 @@ #include "postgres.h" -#include "nodes/pg_list.h" -#include "nodes/plannodes.h" -#include "nodes/parsenodes.h" -#include "nodes/print.h" -#include "nodes/relation.h" -#include "nodes/makefuncs.h" +#include "optimizer/clauses.h" +#include "optimizer/paths.h" #include "optimizer/planmain.h" -#include "optimizer/subselect.h" -#include "optimizer/internal.h" #include "optimizer/prep.h" -#include "optimizer/paths.h" -#include "optimizer/clauses.h" -#include "optimizer/keys.h" +#include "optimizer/subselect.h" #include "optimizer/tlist.h" -#include "optimizer/var.h" -#include "optimizer/xfunc.h" -#include "optimizer/cost.h" - -#include "tcop/dest.h" -#include "utils/elog.h" -#include "utils/palloc.h" -#include "nodes/memnodes.h" -#include "utils/mcxt.h" -#include "utils/lsyscache.h" + static Plan *subplanner(Query *root, List *flat_tlist, List *qual); static Result *make_result(List *tlist, Node *resconstantqual, Plan *subplan); diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c index 5165bf428b3..6b268e046ad 100644 --- a/src/backend/optimizer/plan/planner.c +++ b/src/backend/optimizer/plan/planner.c @@ -7,53 +7,32 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.57 1999/06/21 01:20:57 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.57.2.1 1999/08/02 06:27:02 scrappy Exp $ * *------------------------------------------------------------------------- */ #include <sys/types.h> -#include <string.h> #include "postgres.h" -#include "nodes/pg_list.h" -#include "nodes/plannodes.h" -#include "nodes/parsenodes.h" -#include "nodes/relation.h" -#include "nodes/makefuncs.h" -#include "catalog/pg_type.h" -#include "parser/parse_expr.h" - -#include "utils/elog.h" -#include "utils/lsyscache.h" +#include "access/genam.h" #include "access/heapam.h" - +#include "catalog/pg_type.h" +#include "executor/executor.h" +#include "nodes/makefuncs.h" +#include "optimizer/clauses.h" #include "optimizer/internal.h" +#include "optimizer/planmain.h" #include "optimizer/planner.h" -#include "optimizer/plancat.h" #include "optimizer/prep.h" -#include "optimizer/planmain.h" #include "optimizer/subselect.h" -#include "optimizer/paths.h" -#include "optimizer/cost.h" - -/* DATA STRUCTURE CREATION/MANIPULATION ROUTINES */ -#include "nodes/relation.h" -#include "optimizer/restrictinfo.h" -#include "optimizer/joininfo.h" -#include "optimizer/keys.h" -#include "optimizer/ordering.h" -#include "optimizer/pathnode.h" -#include "optimizer/clauses.h" #include "optimizer/tlist.h" #include "optimizer/var.h" - -#include "executor/executor.h" - +#include "parser/parse_expr.h" +#include "parser/parse_oper.h" #include "utils/builtins.h" +#include "utils/lsyscache.h" #include "utils/syscache.h" -#include "access/genam.h" -#include "parser/parse_oper.h" static List *make_subplanTargetList(Query *parse, List *tlist, AttrNumber **groupColIdx); diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c index 0ba84d3ba98..79c4bb70f6a 100644 --- a/src/backend/optimizer/plan/setrefs.c +++ b/src/backend/optimizer/plan/setrefs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.50 1999/06/06 17:38:10 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.50.2.1 1999/08/02 06:27:03 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -15,23 +15,14 @@ #include "postgres.h" -#include "nodes/pg_list.h" -#include "nodes/plannodes.h" -#include "nodes/primnodes.h" -#include "nodes/relation.h" -#include "utils/elog.h" -#include "nodes/nodeFuncs.h" -#include "nodes/makefuncs.h" -#include "optimizer/internal.h" +#include "nodes/makefuncs.h" +#include "nodes/nodeFuncs.h" #include "optimizer/clauses.h" -#include "optimizer/restrictinfo.h" -#include "optimizer/keys.h" #include "optimizer/planmain.h" #include "optimizer/tlist.h" #include "optimizer/var.h" -#include "optimizer/tlist.h" static void set_join_tlist_references(Join *join); static void set_nonamescan_tlist_references(SeqScan *nonamescan); diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c index 9b8ece2960e..0b18943d738 100644 --- a/src/backend/optimizer/plan/subselect.c +++ b/src/backend/optimizer/plan/subselect.c @@ -6,29 +6,18 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.18.2.1 1999/07/15 01:54:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.18.2.2 1999/08/02 06:27:03 scrappy Exp $ * *------------------------------------------------------------------------- */ #include "postgres.h" #include "catalog/pg_type.h" -#include "nodes/pg_list.h" -#include "nodes/plannodes.h" -#include "nodes/parsenodes.h" -#include "nodes/relation.h" #include "nodes/makefuncs.h" #include "nodes/nodeFuncs.h" -#include "optimizer/subselect.h" -#include "optimizer/planner.h" -#include "optimizer/planmain.h" -#include "optimizer/internal.h" -#include "optimizer/paths.h" #include "optimizer/clauses.h" -#include "optimizer/keys.h" -#include "optimizer/tlist.h" -#include "optimizer/var.h" -#include "optimizer/cost.h" +#include "optimizer/planner.h" +#include "optimizer/subselect.h" int PlannerQueryLevel; /* level of current query */ List *PlannerInitPlan; /* init subplans for current query */ |