]> granicus.if.org Git - postgis/commitdiff
#2511 geometry_columns doesn't support materialized views
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 16 Oct 2013 22:43:14 +0000 (22:43 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 16 Oct 2013 22:43:14 +0000 (22:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12040 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in

index 6caa6c19afbb79f8b78c61e6de9459ac94feffff..a854e56a467fe96f9bdcee86c43add63b70ac3a7 100644 (file)
@@ -4766,7 +4766,7 @@ CREATE OR REPLACE VIEW geometry_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 = 'r'::"char" OR c.relkind = 'v'::"char" OR c.relkind = 'm'::"char")
     AND NOT pg_is_other_temp_schema(c.relnamespace)
     AND NOT ( n.nspname = 'public' AND c.relname = 'raster_columns' )
     AND has_table_privilege( c.oid, 'SELECT'::text );