Summary
The catalog pg_tablespace stores information about the available tablespaces. Tables can be placed in particular tablespaces to aid administration of disk layout.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_tablespace system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierspcnamename
Tablespace namespcowneroidreferencespg_authid.oid
Owner of the tablespace, usually the user who created itspcaclaclitem[]
Access privileges; see ddl_priv for detailsspcoptionstext[]
Tablespace-level options, as “keyword=value” strings
Related catalogs
This object references the following other system catalogs:
spcowner→pg_authid
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_tablespace.