作者:瀚高PG实验室 (Highgo PG Lab)-海无涯
pg_namespace 是存储名字空间的表。名字空间是SQL模式之下的结构:每个名字空间拥有一个独立的表、类型等的集合,且其中没有名字冲突。
表结构如下:
highgo=# \d+ pg_namespace
Table "pg_catalog.pg_namespace"
Column | Type | Modifiers | Storage | Stats target | Description
----------+-----------+-----------+----------+--------------+-------------
nspname | name | not null | plain | |
nspowner | oid | not null | plain | |
nspacl | aclitem[] | | extended | |
Indexes:
"pg_namespace_nspname_index" UNIQUE, btree (nspname)
"pg_namespace_oid_index" UNIQUE, btree (oid)
Replica Identity: FULL
Has OIDs: yes
Name | Type | References | Description |
oid | oid |
| Row identifier (hidden attribute; must be explicitly selected) |
nspname | name |
| Name of the namespace |
nspowner | oid | pg_authid.oid | Owner of the namespace |
nspacl | aclitem[] |
|
名字 | 类型 | 引用 | 描述 |
nspname | name | 名字空间(模式)的名称。 | |
nspowner | oid | pg_authid.oid | 名字空间(模式)的所有者 |
nspacl | aclitem[] | 访问权限。可以细分GRANT和REVOKE权限 |
官网连接:https://www.postgresql.org/docs/9.5/static/catalog-pg-namespace.html