From 3fdb9bb9c74afa79f574438cbbf5178d30463bb6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 12 Feb 1999 05:57:08 +0000 Subject: Fix optimizer and make faster. --- src/backend/optimizer/path/allpaths.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/optimizer/path/allpaths.c') 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) { -- cgit v1.2.3