[postgis-tickets] r14288 - trunk/postgis

postgis-tickets at lists.osgeo.org postgis-tickets at lists.osgeo.org
Sun Oct 18 21:16:25 PDT 2015


Author: robe
Date: 2015-10-18 21:16:25 -0700 (Sun, 18 Oct 2015)
New Revision: 14288

Modified:
   trunk/postgis/postgis.sql.in
Log:
addresses #3340 for 2.3 support for foreign tables in populate_geometry_columns

Modified: trunk/postgis/postgis.sql.in
===================================================================
--- trunk/postgis/postgis.sql.in	2015-10-18 02:19:54 UTC (rev 14287)
+++ trunk/postgis/postgis.sql.in	2015-10-19 04:16:25 UTC (rev 14288)
@@ -1922,7 +1922,7 @@
 		 pg_attribute a,
 		 pg_type t,
 		 pg_namespace n
-	WHERE (c.relkind = 'r' OR c.relkind = 'v')
+	WHERE (c.relkind IN('r','v','f')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid
@@ -1939,7 +1939,7 @@
 			 pg_attribute a,
 			 pg_type t,
 			 pg_namespace n
-		WHERE c.relkind = 'r'
+		WHERE c.relkind IN( 'r', 'f')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid
@@ -2010,7 +2010,7 @@
 			 pg_attribute a,
 			 pg_type t,
 			 pg_namespace n
-		WHERE c.relkind = 'r'
+		WHERE c.relkind IN('r', 'f')
 		AND t.typname = 'geometry'
 		AND a.attisdropped = false
 		AND a.atttypid = t.oid



More information about the postgis-tickets mailing list