↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 系统目录

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提供了对数据库中每个表的有用信息的访问。

目录列

列类型可空性描述
schemanamename可空包含表的模式名称
tablenamename可空表的名称
tableownername可空表拥有者名称
tablespacename可空包含该表的表空间名称(如果使用数据库的默认表空间,此列为 NULL)
hasindexesbool可空如果表有(或最近有过)任何索引,此列为真
hasrulesbool可空如果表有(或曾经有过)规则,此列为真
hastriggersbool可空如果表有(或者曾经有过)触发器,此列为真
rowsecuritybool可空如果表上启用了行级安全则为真

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:d3b90a4fcb70a6992ea31eb4d6ad74a5771b8bda7ec779fa5fbe62223efb2541

正文语言: zh-Hans · 2026-09-27@419045e