git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1668
b70326c6-7e19-0410-871a-
916f4a2858ee
PG_RETURN_FLOAT8(DEFAULT_GEOMETRY_JOINSEL);
}
+ if ( rows_returned > total_tuples )
+ PG_RETURN_FLOAT8(1.0);
+
PG_RETURN_FLOAT8(rows_returned / total_tuples);
}
/**********************************************************************
* $Log$
+ * Revision 1.29.2.3 2005/04/22 01:05:41 strk
+ * Fixed bug in join selectivity estimator returning invalid estimates (>1)
+ *
* Revision 1.29.2.2 2005/04/18 14:12:59 strk
* Slightly changed standard deviation computation to be more corner-case-friendly.
*