[postgis-tickets] [SCM] PostGIS branch master updated. 478f3023be5ed7e6d3f2841c6e88b65a63700340

git at osgeo.org git at osgeo.org
Fri Dec 27 00:44:56 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  478f3023be5ed7e6d3f2841c6e88b65a63700340 (commit)
      from  ee076579927e37b788a9f0f1f9d2280e96c4ec1c (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 478f3023be5ed7e6d3f2841c6e88b65a63700340
Author: Regina Obe <lr at pcorp.us>
Date:   Fri Dec 27 03:44:52 2019 -0500

    postgis_extensions_upgrade change to allow repackaging postgis_tiger_geocoder.  Closese  #4610 for PostGIS 3.1.0

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 4727552..ded515c 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -2850,7 +2850,10 @@ BEGIN
 							JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid )
 							WHERE n.nspname = 'topology' AND c.relname = 'topology') )
 
-				 -- TODO: How do we tell if PostGIS Tiger Geocoder is available  ?
+				 OR ( rec.name = 'postgis_tiger_geocoder' AND EXISTS (
+							SELECT 1 FROM pg_catalog.pg_class c
+							JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid )
+							WHERE n.nspname = 'tiger' AND c.relname = 'geocode_settings') )
 			THEN
 				--force install in same schema as postgis only if postgis extension is installed
 				IF rec.name NOT IN('postgis', 'postgis_topology', 'postgis_tiger_geocoder') AND EXISTS (SELECT 1 FROM pg_catalog.pg_extension WHERE extname = 'postgis') THEN

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list