pg_tables
视图pg_tables提供了对数据库中每个表的有用信息的访问。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- kind
- view
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- schemaname, tablename, tableowner, tablespace, hasindexes, hasrules, hastriggers, rowsecurity
- runtime verified
- false
- source
- english-manual
版本定义 PG 18
视图pg_tables提供了对数据库中每个表的有用信息的访问。
目录列
| 列 | 类型 | 可空性 | 描述 |
|---|---|---|---|
| schemaname | name | 可空 | 包含表的模式名称 |
| tablename | name | 可空 | 表的名称 |
| tableowner | name | 可空 | 表拥有者名称 |
| tablespace | name | 可空 | 包含该表的表空间名称(如果使用数据库的默认表空间,此列为 NULL) |
| hasindexes | bool | 可空 | 如果表有(或最近有过)任何索引,此列为真 |
| hasrules | bool | 可空 | 如果表有(或曾经有过)规则,此列为真 |
| hastriggers | bool | 可空 | 如果表有(或者曾经有过)触发器,此列为真 |
| rowsecurity | bool | 可空 | 如果表上启用了行级安全则为真 |
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:d3b90a4fcb70a6992ea31eb4d6ad74a5771b8bda7ec779fa5fbe62223efb2541
正文语言: zh-Hans · 2026-09-27@419045e