diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-09-21 15:41:28 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-09-21 15:41:28 +0000 |
commit | 748e3003176c94d5db2174e959b46f7745d806a7 (patch) | |
tree | 2afa77055d92ab055557121b5b2803847a843cc0 /src/backend/optimizer/util/pathnode.c | |
parent | 06b8c8a8b8962ec9fa6116d150f6abb967be3247 (diff) | |
download | postgresql-748e3003176c94d5db2174e959b46f7745d806a7.tar.gz postgresql-748e3003176c94d5db2174e959b46f7745d806a7.zip |
Fix for AND/OR handling.
Diffstat (limited to 'src/backend/optimizer/util/pathnode.c')
-rw-r--r-- | src/backend/optimizer/util/pathnode.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c index 598400fa49a..d7dcbcc84f9 100644 --- a/src/backend/optimizer/util/pathnode.c +++ b/src/backend/optimizer/util/pathnode.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.12 1998/09/01 04:30:08 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.13 1998/09/21 15:41:28 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -355,20 +355,17 @@ create_index_path(Query *root, &npages, &selec); /* each clause gets an equal selectivity */ - clausesel = - pow(selec, - 1.0 / (double) length(restriction_clauses)); + clausesel = pow(selec, 1.0 / (double) length(restriction_clauses)); pathnode->indexqual = restriction_clauses; - pathnode->path.path_cost = - cost_index(lfirsti(index->relids), - (int) npages, - selec, - rel->pages, - rel->tuples, - index->pages, - index->tuples, - false); + pathnode->path.path_cost = cost_index(lfirsti(index->relids), + (int) npages, + selec, + rel->pages, + rel->tuples, + index->pages, + index->tuples, + false); #if 0 /* add in expensive functions cost! -- JMH, 7/7/92 */ |