[postgis-tickets] [SCM] PostGIS branch master updated. d8a3b2ec4708752e770daabbaa38bd10e54b8d25

git at osgeo.org git at osgeo.org
Mon Nov 18 08:58:03 PST 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  d8a3b2ec4708752e770daabbaa38bd10e54b8d25 (commit)
      from  7613d9ae7af8144043dad3e42131a881142e17f0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d8a3b2ec4708752e770daabbaa38bd10e54b8d25
Author: Regina Obe <lr at pcorp.us>
Date:   Mon Nov 18 11:57:55 2019 -0500

    Don't try to specify schema if postgis extension itself is being installed. References #4581 for PostGIS 3.1 master

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index b29db3b..2b0c3d0 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -2851,7 +2851,11 @@ BEGIN
 
 				 -- TODO: How do we tell if PostGIS Tiger Geocoder is available  ?
 			THEN
-				sql = 'CREATE EXTENSION ' || rec.name || ' FROM unpackaged SCHEMA @extschema@';
+				IF rec.name != 'postgis' THEN
+					sql = 'CREATE EXTENSION ' || rec.name || ' FROM unpackaged SCHEMA @extschema@';
+				ELSE
+					sql = 'CREATE EXTENSION ' || rec.name || ' FROM unpackaged';
+				END IF;
 				RAISE NOTICE 'Packaging extension %', rec.name;
 				RAISE DEBUG '%', sql;
 				EXECUTE sql;

-----------------------------------------------------------------------

Summary of changes:
 postgis/postgis.sql.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list