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

53.32. pg_tables #

视图 pg_tables 提供对数据库中每个表有用信息的 访问。

Table 53.32. \1 字段列说明

Column Type

Description

schemaname name (references pg_namespace.nspname)

包含表的模式的名称

tablename name (references pg_class.relname)

表的名称

tableowner name (references pg_authid.rolname)

表拥有者的名称

tablespace name (references pg_tablespace.spcname)

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

hasindexes bool (references pg_class.relhasindex)

如果表拥有(或最近曾拥有)任何索引则为 true

hasrules bool (references pg_class.relhasrules)

如果表拥有(或曾经拥有过)规则则为 true

hastriggers bool (references pg_class.relhastriggers)

如果表拥有(或曾经拥有过)触发器则为 true

rowsecurity bool (references pg_class.relrowsecurity)

如果表上启用了行安全则为 true