]> granicus.if.org Git - postgis/commitdiff
Support materialized views and foreign tables in raster_columns and raster_overviews...
authorBborie Park <bkpark at ucdavis.edu>
Sat, 19 Oct 2013 17:12:02 +0000 (17:12 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Sat, 19 Oct 2013 17:12:02 +0000 (17:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12051 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
raster/rt_pg/rtpostgis.sql.in

diff --git a/NEWS b/NEWS
index 65f19c24f1455381eb444d15aa15001feba8df08..551cf9331002ed81305786263092351cfa1150d7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,8 @@ PostGIS 2.2.0
   - #2454, Fix behavior of ST_PixelAsXXX functions regarding
            exclude_nodata_value parameter
   - #2493, Fix behavior of ST_DumpValues when passed an empty raster
+  - #2512, Support for foreign tables and materialized views in
+           raster_columns and raster_overviews
 
 PostGIS 2.1.0
 2013/08/17
index c67b25dc6d40c437bcb109d42a9a008a3670f3d6..62540230553b920bceb92bbea79341eb0c414876 100644 (file)
@@ -7951,7 +7951,7 @@ CREATE OR REPLACE VIEW raster_columns AS
                AND a.atttypid = t.oid
                AND a.attrelid = c.oid
                AND c.relnamespace = n.oid
-               AND (c.relkind = 'r'::"char" OR c.relkind = 'v'::"char")
+               AND c.relkind = ANY(ARRAY['r'::char, 'v'::char, 'm'::char, 'f'::char])
                AND NOT pg_is_other_temp_schema(c.relnamespace);
 
 ------------------------------------------------------------------------------
@@ -8051,7 +8051,7 @@ CREATE OR REPLACE VIEW raster_overviews AS
                AND a.atttypid = t.oid
                AND a.attrelid = c.oid
                AND c.relnamespace = n.oid
-               AND (c.relkind = 'r'::"char" OR c.relkind = 'v'::"char")
+               AND c.relkind = ANY(ARRAY['r'::char, 'v'::char, 'm'::char, 'f'::char])
                AND s.connamespace = n.oid
                AND s.conrelid = c.oid
                AND s.consrc LIKE '%_overview_constraint(%'