]> granicus.if.org Git - postgis/commitdiff
With GSERIALIZED_ON enabled, adapted code that needs preprocessor conditions. Basica...
authorBborie Park <bkpark at ucdavis.edu>
Tue, 14 Jun 2011 16:04:34 +0000 (16:04 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Tue, 14 Jun 2011 16:04:34 +0000 (16:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7394 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis.sql.in.c

index adf92c3e6e45fc43e8f17efbb8cc8018319f06dc..8a9ff8ee531efbe7f3d4d093773bb2220ba3a3da 100644 (file)
@@ -22,6 +22,8 @@
 --
 -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
+#include "../../postgis/gserialized.h"
+
 -- BEGIN;
 
 ------------------------------------------------------------------------------
@@ -2393,7 +2395,11 @@ CREATE OPERATOR &<| (
 CREATE OPERATOR && (
     LEFTARG = raster, RIGHTARG = raster, PROCEDURE = st_overlap,
     COMMUTATOR = '&&',
+#ifdef GSERIALIZED_ON
+    RESTRICT = contsel, JOIN = contjoinsel
+#else
     RESTRICT = geometry_gist_sel, JOIN = geometry_gist_joinsel
+#endif
     );
 
 CREATE OPERATOR &> (