PostgreSQL 中文参考文档
🌐 英文原版 官方 ↗

53.14. pg_matviews #

视图 pg_matviews 提供对数据库中每个物化视图 有用信息的访问。

Table 53.14. \1 字段列说明

Column Type

Description

schemaname name (references pg_namespace.nspname)

包含物化视图的模式的名称

matviewname name (references pg_class.relname)

物化视图的名称

matviewowner name (references pg_authid.rolname)

物化视图拥有者的名称

tablespace name (references pg_tablespace.spcname)

包含该物化视图的表空间的名字(如果使用数据库默认值则为空)

hasindexes bool

如果该物化视图有(或最近有过)任何索引则为 true

ispopulated bool

如果物化视图当前已填充则为 true

definition text

物化视图定义(一条重构的 SELECT 查询)