47.44. pg_tablespace

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

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 47-44. pg_tablespace Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
spcnamename Tablespace name
spcowneroidpg_authid.oidOwner of the tablespace, usually the user who created it
spcaclaclitem[]  Access privileges; see GRANT and REVOKE for details
spcoptionstext[]  Tablespace-level options, as "keyword=value" strings