From 781abf0dec0181da2b0d6cabb15d5edd724048a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ra=C3=BAl=20Mar=C3=ADn=20Rodr=C3=ADguez?= Date: Thu, 17 Oct 2019 18:08:35 +0000 Subject: [PATCH] Revert r17928 References #4546 git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17948 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/Makefile.in | 2 +- postgis/postgis.sql.in | 12 ++++-------- raster/rt_pg/Makefile.in | 2 +- raster/rt_pg/rtpostgis.sql.in | 9 +++------ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/postgis/Makefile.in b/postgis/Makefile.in index 5fb4684a9..355c31c8f 100644 --- a/postgis/Makefile.in +++ b/postgis/Makefile.in @@ -211,7 +211,7 @@ endif # replace @extschema@. with nothing, this is only used as placeholder for extension install %.sql: %.sql.in $(SQLPP) -I../libpgcommon $< | grep -v '^#' | \ - $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g;s'SET search_path = @extschema@''g;" > $@ + $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g" > $@ postgis_upgrade_for_extension.sql: postgis_drop_before.sql postgis_upgrade_for_extension.sql.in postgis_drop_after.sql cat $^ > $@ diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in index b382d83ce..80a93b56d 100644 --- a/postgis/postgis.sql.in +++ b/postgis/postgis.sql.in @@ -5235,7 +5235,7 @@ BEGIN geom := @extschema@.ST_BuildArea(mline); - IF @extschema@.GeometryType(geom) != 'POLYGON' + IF GeometryType(geom) != 'POLYGON' THEN RAISE EXCEPTION 'Input returns more then a single polygon, try using BdMPolyFromText instead'; END IF; @@ -5243,8 +5243,7 @@ BEGIN RETURN geom; END; $$ -LANGUAGE 'plpgsql' IMMUTABLE STRICT _PARALLEL -SET search_path = @extschema@; +LANGUAGE 'plpgsql' IMMUTABLE STRICT _PARALLEL; -- -- SFSQL 1.1 @@ -5281,8 +5280,7 @@ BEGIN RETURN geom; END; $$ -LANGUAGE 'plpgsql' IMMUTABLE STRICT _PARALLEL -SET search_path = @extschema@; +LANGUAGE 'plpgsql' IMMUTABLE STRICT _PARALLEL; /* Should we include the .sql directly here ? */ #include "long_xact.sql.in" @@ -5812,8 +5810,7 @@ $$ END; $$ - LANGUAGE plpgsql IMMUTABLE STRICT _PARALLEL - SET search_path = @extschema@; + LANGUAGE plpgsql IMMUTABLE STRICT _PARALLEL; CREATE OR REPLACE FUNCTION ST_ConcaveHull(param_geom geometry, param_pctconvex float, param_allow_holes boolean DEFAULT false) RETURNS geometry AS $$ @@ -5968,7 +5965,6 @@ $$ END; $$ LANGUAGE 'plpgsql' IMMUTABLE STRICT _PARALLEL; -SET search_path = @extschema@; -- ST_ConcaveHull and Helper functions end here -- ----------------------------------------------------------------------- diff --git a/raster/rt_pg/Makefile.in b/raster/rt_pg/Makefile.in index b242f1775..6566bc15d 100644 --- a/raster/rt_pg/Makefile.in +++ b/raster/rt_pg/Makefile.in @@ -101,7 +101,7 @@ endif # replace @extschema@. with nothing, this is only used as placeholder for extension install %.sql: %.sql.in $(SQLPP) -I../../postgis/ -I../../ $< | grep -v '^#' | \ - $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/rtpostgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g;s'SET search_path = @extschema@''g;" > $@ + $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/rtpostgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g" > $@ rtpostgis_for_extension.sql: rtpostgis.sql.in $(SQLPP) -I../../postgis/ -I../../ $< | grep -v '^#' | \ diff --git a/raster/rt_pg/rtpostgis.sql.in b/raster/rt_pg/rtpostgis.sql.in index da62cabd9..f4f610023 100644 --- a/raster/rt_pg/rtpostgis.sql.in +++ b/raster/rt_pg/rtpostgis.sql.in @@ -2364,8 +2364,7 @@ CREATE OR REPLACE FUNCTION st_asraster( RETURN @extschema@._ST_asraster(g, scale_x, scale_y, NULL, NULL, $3, $4, $5, NULL, NULL, ul_x, ul_y, skew_x, skew_y, $6); END; - $$ LANGUAGE 'plpgsql' IMMUTABLE _PARALLEL - SET search_path = @extschema@; + $$ LANGUAGE 'plpgsql' IMMUTABLE _PARALLEL; CREATE OR REPLACE FUNCTION st_asraster( geom geometry, @@ -7449,8 +7448,7 @@ CREATE OR REPLACE FUNCTION _add_raster_constraint_coverage_tile(rastschema name, RETURN @extschema@._add_raster_constraint(cn, sql); END; $$ LANGUAGE 'plpgsql' VOLATILE STRICT - COST 100 - SET search_path = @extschema@; + COST 100; CREATE OR REPLACE FUNCTION _drop_raster_constraint_coverage_tile(rastschema name, rasttable name, rastcolumn name) RETURNS boolean AS @@ -8807,8 +8805,7 @@ BEGIN RETURN; END; -$$ LANGUAGE 'plpgsql' STABLE STRICT -SET search_path = @extschema@; +$$ LANGUAGE 'plpgsql' STABLE STRICT; ------------------------------------------------------------------------------ -- ST_CreateOverview -- 2.40.0