9.3 9.4 9.5 9.6 10 11 12 13 14
阿里云PostgreSQL 问题报告 纠错本页面

51.75. pg_matviews

视图pg_matviews提供了关于数据库中每一个物化视图的信息。

表 51.76. pg_matviews的列

名称类型引用描述
schemanamenamepg_namespace.nspname包含物化视图的模式的名字
matviewnamenamepg_class.relname物化视图的名字
matviewownernamepg_authid.rolname物化视图拥有者的名字
tablespacenamepg_tablespace.spcname包含物化视图的表空间名(如使用数据库默认表空间则为空)
hasindexesboolean 如果物化视图有(或者最近有过)任何索引,则此列为真
ispopulatedboolean 如果物化视图当前已被填充,则此列为真
definitiontext 物化视图的定义(一个重构的SELECT查询)