↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

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.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
catalog
lang
en
measured attributes
true
metadata release
18.6
runtime columns
oid, spcname, spcowner, spcacl, spcoptions
runtime verified
false
source
english-manual

Definition PG 18

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.

Catalog columns

ColumnTypeNullabilityDescription
oidoidNot nullRow identifier
spcnamenameNot nullTablespace name
spcowneroidNot nullOwner of the tablespace, usually the user who created it
spcaclaclitem[]NullableAccess privileges; see Section 5.8 for details
spcoptionstext[]NullableTablespace-level options, as “keyword=value” strings

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:42fd6e9991d8afb072a6e20dcafcc32ee9a283f3d92fcaaec34dd5906961dee8

Text language: en · catalog-bilingual-repair:42fd6e9991d8afb072a6e20dcafcc32ee9a283f3d92fcaaec34dd5906961dee8