历史版本。 PostgreSQL 8.3 已结束支持。 请参阅 当前版本手册.
33.41. tables #
视图tables包含定义在当前数据库中的所有表和视图。只有那些当前用户能够访问(作为拥有者或具有某些权限)的表和视图才会被显示。
表 33.39. tables 列
| 名称 | 数据类型 | 描述 |
|---|---|---|
table_catalog | sql_identifier | 包含该表的数据库名称(总是当前数据库) |
table_schema | sql_identifier | 包含该表的模式名称 |
table_name | sql_identifier | 表的名称 |
table_type | character_data | Type of the table: BASE TABLE for a
persistent base table (the normal table type),
VIEW for a view, or LOCAL
TEMPORARY for a temporary table
|
self_referencing_column_name | sql_identifier | 对应 PostgreSQL 不支持的特性 |
reference_generation | character_data | 对应 PostgreSQL 不支持的特性 |
user_defined_type_catalog | sql_identifier | 对应 PostgreSQL 中不可用的特性 |
user_defined_type_schema | sql_identifier | 对应 PostgreSQL 中不可用的特性 |
user_defined_type_name | sql_identifier | 对应 PostgreSQL 中不可用的特性 |
is_insertable_into | character_data | 如果该表能够被插入,则为YES,否则为NO(基本表总是能被插入,而视图则不一定)。
|
is_typed | character_data | 对应 PostgreSQL 中不可用的特性 |
commit_action | character_data | 如果这个表是一个临时表,则为 PRESERVE,否则为空。(SQL 标准为临时表定义了其他提交动作,但 PostgreSQL 不支持它们。)
|