diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-03-08 13:35:50 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-03-08 13:35:50 +0000 |
commit | c831d08fac528011600d76b4a7152d54d82e2b8f (patch) | |
tree | c547a9c0153a7cbc149b64d5d02aeab969e40eef /src | |
parent | 75007a72d6d3387c1e5cd6ba11e06c76513bfd64 (diff) | |
download | postgresql-c831d08fac528011600d76b4a7152d54d82e2b8f.tar.gz postgresql-c831d08fac528011600d76b4a7152d54d82e2b8f.zip |
Fix for Alpha OR selectivity bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/optimizer/path/orindxpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/optimizer/path/orindxpath.c b/src/backend/optimizer/path/orindxpath.c index 4637807cc8a..5566954f595 100644 --- a/src/backend/optimizer/path/orindxpath.c +++ b/src/backend/optimizer/path/orindxpath.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.21 1999/02/21 03:48:45 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.22 1999/03/08 13:35:50 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -132,7 +132,7 @@ create_or_index_paths(Query *root, ((Path *) pathnode)->path_cost += xfunc_get_path_cost((Path) pathnode); } #endif - clausenode->selectivity = (Cost) floatVal(selecs); + clausenode->selectivity = (Cost) floatVal(lfirst(selecs)); t_list = lappend(t_list, pathnode); } } |