| PostgreSQL 8.0.0 中文文档(PostgreSQL 中国制作) | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 41. 系统表 | Fast Forward | Next |
视图 pg_tables 提供了对有关数据库中每个表的有用信息地访问。
Table 41-37. pg_tables 字段
| 名字 | 类型 | 引用 | 描述 |
|---|---|---|---|
| schemaname | name | pg_namespace.nspname | 包含表的模式名字 |
| tablename | name | pg_class.relname | 表的名字 |
| tableowner | name | pg_shadow.usename | 表的所有者的名字 |
| tablespace | name | pg_tablespace.spcname | 包含表的表空间名字(如果是数据库缺省,则为 NULL) |
| hasindexes | boolean | pg_class.relhasindex | 如果表拥有(或者最近拥有)任何索引,则为真 |
| hasrules | boolean | pg_class.relhasrules | 如果表有规则,则为真 |
| hastriggers | boolean | pg_class.reltriggers | 如果表有触发器,则为真 |