pg_tables
pg_tables#
视图 pg_tables
提供对数据库中每个表的信息的访问。
Table 1. pg_tables
column |
type |
references |
description |
---|---|---|---|
|
name |
pg_namespace.nspname |
表的模式名 |
|
name |
pg_class.relname |
表名 |
|
name |
pg_authid.rolname |
表拥有者的名字 |
|
name |
pg_tablespace.spcname |
包含表的表空间的名字(如果使用数据库的默认表空间,此列为空) |
|
boolean |
pg_class.relhasindex |
如果表有(或最近有过)任何索引,此列为真 |
|
boolean |
pg_class.relhasrules |
如果表有(或曾经有过)规则,此列为真 |
|
boolean |
pg_class.relhastriggers |
如果表有(或者曾经有过)触发器,此列为真 |
|
boolean |
pg_class.relrowsecurity |
如果表启用了row security,此列为真 |