55.58. pg_tablespace

В каталоге pg_tablespace хранится информация о доступных табличных пространствах. Таблицы могут быть распределены по разным табличным пространствам для эффективного использования дискового хранилища.

В отличие от большинства системных каталогов, pg_tablespace разделяется всеми базами данных кластера: есть только один экземпляр pg_tablespace в кластере, а не отдельные для каждой базы данных.

Таблица 55.58. Столбцы pg_tablespace

Тип столбца

Описание

oid oid

Идентификатор строки

spcname name

Имя табличного пространства

spcowner oid (ссылается на pg_authid.oid)

Владелец табличного пространства, обычно пользователь, создавший его

spcacl aclitem[]

Права доступа; за подробностями обратитесь к Разделу 5.7.

spcoptions text[]

Параметры уровня табличного пространства, в виде строк «ключ=значение»


55.58. 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 55.58. pg_tablespace Columns

Column Type

Description

oid oid

Row identifier

spcname name

Tablespace name

spcowner oid (references pg_authid.oid)

Owner of the tablespace, usually the user who created it

spcacl aclitem[]

Access privileges; see Section 5.7 for details

spcoptions text[]

Tablespace-level options, as keyword=value strings


FAQ