From: Bruce Momjian Date: Mon, 8 Mar 1999 13:35:50 +0000 (+0000) Subject: Fix for Alpha OR selectivity bug. X-Git-Tag: REL6_5~560 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c831d08fac528011600d76b4a7152d54d82e2b8f;p=postgresql Fix for Alpha OR selectivity bug. --- diff --git a/src/backend/optimizer/path/orindxpath.c b/src/backend/optimizer/path/orindxpath.c index 4637807cc8..5566954f59 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); } }