From: Bborie Park Date: Tue, 14 Jun 2011 16:04:34 +0000 (+0000) Subject: With GSERIALIZED_ON enabled, adapted code that needs preprocessor conditions. Basica... X-Git-Tag: 2.0.0alpha1~1429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07fbd139702c9c87b6fa1f6b0f546b57d5e3055d;p=postgis With GSERIALIZED_ON enabled, adapted code that needs preprocessor conditions. Basically instead of "geometry_gist_sel" and "geometry_gist_joinsel", GSERIALIZED_ON uses "contsel" and "contjoinsel" git-svn-id: http://svn.osgeo.org/postgis/trunk@7394 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis.sql.in.c b/raster/rt_pg/rtpostgis.sql.in.c index adf92c3e6..8a9ff8ee5 100644 --- a/raster/rt_pg/rtpostgis.sql.in.c +++ b/raster/rt_pg/rtpostgis.sql.in.c @@ -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 &> (