Catalogs: pg_tablespace

50.47. pg_tablespace

The catalog pg_tablespace stores information about the available tablespaces. Tables can be placed in particular tablespaces to aid administration of disk layout.

Unlike most system catalogs, pg_tablespace is shared across all databases of a cluster: there is only one copy of pg_tablespace per cluster, not one per database.

Table 50-47. pg_tablespace Columns

Name Type References Description
oid oid Row identifier (hidden attribute; must be explicitly selected)
spcname name Tablespace name
spcowner oid pg_authid.oid Owner of the tablespace, usually the user who created it
spcacl aclitem[] Access privileges; see GRANT and REVOKE for details
spcoptions text[] Tablespace-level options, as "keyword=value" strings

© 1996–2017 The PostgreSQL Global Development Group
Licensed under the PostgreSQL License.
https://www.postgresql.org/docs/9.6/static/catalog-pg-tablespace.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部