pg_matviews
视图pg_matviews提供了对数据库中每个物化视图的有用信息的访问。
Table 51.75. pg_matviews 列
列类型
描述
schemaname name (参考 pg_namespace.nspname)
schemaname
name
pg_namespace
nspname
包含物化视图的模式名称
matviewname name (参考 pg_class.relname)
matviewname
pg_class
relname
物化视图名称
matviewowner name (参考 pg_authid.rolname)
matviewowner
pg_authid
rolname
物化视图拥有者名称
tablespace name (参考 pg_tablespace.spcname)
tablespace
pg_tablespace
spcname
包含物化视图的表空间名(如使用数据库默认表空间则为空)
hasindexes bool
hasindexes
bool
如果物化视图有(或者最近有过)任何索引,则此列为真
ispopulated bool
ispopulated
如果物化视图当前已被填充,则此列为真
definition text
definition
text
物化视图的定义(一个重构的SELECT查询)
SELECT