]> granicus.if.org Git - postgis/commitdiff
addresses #3340 for 2.3 support for foreign tables in populate_geometry_columns
authorRegina Obe <lr@pcorp.us>
Mon, 19 Oct 2015 04:16:25 +0000 (04:16 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 19 Oct 2015 04:16:25 +0000 (04:16 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14288 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in

index 46bb4cfe1853a5c5ec117d4da21e74733cc334da..e8385d4e25b960bb2304cf374cc43e1f6634c03a 100644 (file)
@@ -1922,7 +1922,7 @@ BEGIN
                 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 @@ BEGIN
                         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 @@ BEGIN
                         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