]> granicus.if.org Git - postgis/commitdiff
Allow ~= operator to recheck, per #253.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 18:47:57 +0000 (18:47 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 18:47:57 +0000 (18:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4736 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_gist.c

index f89c1a1f0d4df244bcf48c9151c936d8693e5a78..4f965a8c214b824f1e14d33e839c0a7e93979c08 100644 (file)
@@ -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");