Hi,
I seem to have fixed the floating point problem on the Alphas -- at
least for my test cases. It requires the following patch at the end of
this mail. Could somebody who know postgres a bit better than me please
double-check it, and let me know whether it is ok? The regression test
seemed to run ok'ish (i.e. no more than before failed).
Adriaan
*** ./src/backend/optimizer/path/orindxpath.c.orig Mon Sep 21
18:41:27 1998
--- ./src/backend/optimizer/path/orindxpath.c Tue Mar 2 16:25:11 1999
***************
*** 133,139 ****
xfunc_get_path_cost((Path) pathnode);
}
#endif
! clausenode->selectivity = (Cost)
floatVal(selecs);
t_list = lappend(t_list, pathnode);
}
}
--- 133,139 ----
xfunc_get_path_cost((Path) pathnode);
}
#endif
! clausenode->selectivity = (Cost)
floatVal(selecs->elem.ptr_value);
t_list = lappend(t_list, pathnode);
}
}