From 0cc9a3bc4e9f3524d4947a157d8897b2c46a2d7e Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 4 Nov 2009 18:47:57 +0000 Subject: [PATCH] Allow ~= operator to recheck, per #253. git-svn-id: http://svn.osgeo.org/postgis/trunk@4736 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_gist.c | 6 ++++++ 1 file changed, 6 insertions(+) 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"); -- 2.50.1