1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Update optimizer comments.

This commit is contained in:
Bruce Momjian
1999-02-04 19:20:12 +00:00
parent 19cc38b28d
commit ae12e25263
2 changed files with 18 additions and 13 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.18 1999/02/04 01:46:58 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.19 1999/02/04 19:20:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -64,16 +64,18 @@ prune_joinrel(RelOptInfo *rel, List *other_rels)
List *i = NIL;
List *result = NIL;
foreach(i, other_rels)
foreach(r1, other_rels)
{
RelOptInfo *other_rel = (RelOptInfo *) lfirst(i);
RelOptInfo *other_rel = (RelOptInfo *) lfirst(r1);
if (same(rel->relids, other_rel->relids))
{
/*
* This are on the same relations,
* so get the best of their pathlists.
*/
rel->pathlist = add_pathlist(rel,
rel->pathlist,
other_rel->pathlist);
}
else
result = nconc(result, lcons(other_rel, NIL));
}