diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-02-12 05:57:08 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-02-12 05:57:08 +0000 |
commit | 3fdb9bb9c74afa79f574438cbbf5178d30463bb6 (patch) | |
tree | 1cdf6169a3d610b3f1addab3d1e0bf2355b63c53 /src/backend/optimizer/path/allpaths.c | |
parent | 55d0465009b99d340c643dafae8a6a0846e45de1 (diff) | |
download | postgresql-3fdb9bb9c74afa79f574438cbbf5178d30463bb6.tar.gz postgresql-3fdb9bb9c74afa79f574438cbbf5178d30463bb6.zip |
Fix optimizer and make faster.
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 90d75099be3..c11f5cf7c85 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.27 1999/02/10 21:02:36 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.28 1999/02/12 05:56:49 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -139,7 +139,7 @@ find_rel_paths(Query *root, List *rels) lastpath = rel->pathlist; while (lnext(lastpath) != NIL) lastpath = lnext(lastpath); - prune_rel_path(rel, (Path *) lfirst(lastpath)); + set_cheapest(rel, rel->pathlist); /* * if there is a qualification of sequential scan the selec. value @@ -223,7 +223,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_needed) xfunc_trypullup((RelOptInfo *) lfirst(x)); #endif - prune_rel_paths(new_rels); + rels_set_cheapest(new_rels); if (BushyPlanFlag) { |