pg_matviews
视图pg_matviews提供了对数据库中每个物化视图的有用信息的访问。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- kind
- view
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- schemaname, matviewname, matviewowner, tablespace, hasindexes, ispopulated, definition
- runtime verified
- false
- source
- english-manual
版本定义 PG 18
视图pg_matviews提供了对数据库中每个物化视图的有用信息的访问。
目录列
| 列 | 类型 | 可空性 | 描述 |
|---|---|---|---|
| schemaname | name | 可空 | 包含物化视图的模式名称 |
| matviewname | name | 可空 | 物化视图名称 |
| matviewowner | name | 可空 | 物化视图拥有者名称 |
| tablespace | name | 可空 | 包含物化视图的表空间名(如使用数据库默认表空间则为 NULL) |
| hasindexes | bool | 可空 | 如果物化视图有(或者最近有过)任何索引,则此列为真 |
| ispopulated | bool | 可空 | 如果物化视图当前已被填充,则此列为真 |
| definition | text | 可空 | 物化视图的定义(一个重建的SELECT查询) |
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:2d999315155f22ac16fb17ff37eb297a713180302db635c736a6470f4fe7234a
正文语言: zh-Hans · 2026-09-27@419045e