Skip to content

Commit 78da45d

Browse files
authored
Add materialized views to collections list (#57)
1 parent 803adb0 commit 78da45d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## Version NEXT
44
*Released: TBD*
55

6+
### New Features
7+
8+
* Display materialized views as collections
9+
610
### Bug Fixes
711

812
* Handle specialty column types by casting to text (#52)

data/db_sql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ LEFT JOIN pg_index i ON (c.oid = i.indrelid AND i.indisprimary
4949
AND i.indnatts = 1)
5050
LEFT JOIN pg_attribute ia ON (ia.attrelid = i.indexrelid)
5151
LEFT JOIN pg_type it ON (ia.atttypid = it.oid AND it.typname in ('int2', 'int4', 'int8'))
52-
WHERE c.relkind IN ('r', 'v') -- add 'v' for views
52+
WHERE c.relkind IN ('r', 'v', 'm') -- add 'v' for views
5353
AND t.typname = 'geometry'
5454
AND has_table_privilege(c.oid, 'select')
5555
AND postgis_typmod_srid(a.atttypmod) > 0

0 commit comments

Comments
 (0)