On this page
52.88. pg_tables
视图pg_tables
提供对数据库中每个表的有用信息的访问。
表 52.89. pg_tables
列
Name | Type | References | Description |
---|---|---|---|
schemaname |
name |
pg_namespace.nspname |
包含表的模式名称 |
tablename |
name |
pg_class.relname |
表名 |
tableowner |
name |
pg_authid.rolname |
表的所有者名称 |
tablespace |
name |
pg_tablespace.spcname |
包含表的表空间的名称(如果为数据库的默认值,则为 null) |
hasindexes |
boolean |
pg_class.relhasindex |
如果表具有(或最近具有)任何索引,则为真 |
hasrules |
boolean |
pg_class.relhasrules |
如果表具有(或曾经具有)规则,则为真 |
hastriggers |
boolean |
pg_class.relhastriggers |
如果表具有(或曾经具有)触发器,则为真 |
rowsecurity |
boolean |
pg_class.relrowsecurity |
如果在表上启用行安全性,则为 True |