1
Description: Apply proposed patch from upstream bug #2543
2
Not quite how important upstream issue #2543 is in the wild, but the
3
proposed fix seems save in any case. On MIPS, I occasionally see very
4
high selectivity values, with indicates a bug. For now, let's just
5
cap the selectivity at 1.0.
6
Author: Paul Ramsey <pramsey@cleverelephant.ca>
7
Bug: http://trac.osgeo.org/postgis/ticket/2543
8
Origin: upstream, http://trac.osgeo.org/postgis/attachment/ticket/2543/joinsel.patch
9
Last-Update: 2013-11-13
11
--- a/postgis/gserialized_estimate.c
12
+++ b/postgis/gserialized_estimate.c
13
@@ -1075,6 +1075,10 @@
15
selectivity = val / ntuples_max;
17
+ /* Guard against over-estimates :) */
18
+ if ( selectivity > 1.0 )