mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Fix optimizer and make faster.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user