From: Paul Ramsey Date: Wed, 4 Nov 2009 18:47:57 +0000 (+0000) Subject: Allow ~= operator to recheck, per #253. X-Git-Tag: 1.5.0b1~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cc9a3bc4e9f3524d4947a157d8897b2c46a2d7e;p=postgis Allow ~= operator to recheck, per #253. git-svn-id: http://svn.osgeo.org/postgis/trunk@4736 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_gist.c b/postgis/lwgeom_gist.c index f89c1a1f0..4f965a8c2 100644 --- a/postgis/lwgeom_gist.c +++ b/postgis/lwgeom_gist.c @@ -562,6 +562,12 @@ Datum LWGEOM_gist_consistent(PG_FUNCTION_ARGS) out during index scans. For cases when the geometries are large, rechecking can make things twice as slow. */ *recheck = false; + + /* Our ~= operator (strategy 6) requires a re-check in order to + function according to the documentation and past behavior. + We will temporarily enable that behavior here. */ + if ( strategy == 6 ) + *recheck = true; #endif POSTGIS_DEBUG(2, "GIST: LWGEOM_gist_consistent called");