[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-145-g6700df0

git at osgeo.org git at osgeo.org
Fri Jul 3 17:10:53 PDT 2020


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  6700df0e2db7965458b36f973d0216ce1cada762 (commit)
      from  50796cc1ae7b77ec0af102c72cd7a365c0f04cd5 (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 6700df0e2db7965458b36f973d0216ce1cada762
Author: Regina Obe <lr at pcorp.us>
Date:   Fri Jul 3 20:10:44 2020 -0400

    add partitions to populate_geometry_columns consideration references #4714 for PostGIS 3.1.0

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 9b662c8..92d685d 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -1999,7 +1999,7 @@ BEGIN
 		 pg_attribute a,
 		 pg_type t,
 		 pg_namespace n
-	WHERE c.relkind IN('r','v','f')
+	WHERE c.relkind IN('r','v','f', 'p')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid
@@ -2016,7 +2016,7 @@ BEGIN
 			 pg_attribute a,
 			 pg_type t,
 			 pg_namespace n
-		WHERE c.relkind IN( 'r', 'f')
+		WHERE c.relkind IN( 'r', 'f', 'p')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid
@@ -2082,12 +2082,12 @@ BEGIN
 
 	-- Iterate through all geometry columns in this table
 	FOR gcs IN
-	SELECT n.nspname, c.relname, a.attname
+	SELECT n.nspname, c.relname, a.attname, c.relkind
 		FROM pg_class c,
 			 pg_attribute a,
 			 pg_type t,
 			 pg_namespace n
-		WHERE c.relkind IN('r', 'f')
+		WHERE c.relkind IN('r', 'f', 'p')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid
@@ -2103,7 +2103,7 @@ BEGIN
         -- Find the srid, coord_dimension, and type of current geometry
         -- in geometry_columns -- which is now a view
 
-        SELECT type, srid, coord_dimension INTO gc_old
+        SELECT type, srid, coord_dimension, gcs.relkind INTO gc_old
             FROM geometry_columns
             WHERE f_table_schema = gcs.nspname AND f_table_name = gcs.relname AND f_geometry_column = gcs.attname;
 

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list