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
| Column | Type | Nullability | Description |
|---|---|---|---|
| oid | oid | Not null | Row identifier |
| spcname | name | Not null | Tablespace name |
| spcowner | oid | Not null | Owner of the tablespace, usually the user who created it |
| spcacl | aclitem[] | Nullable | Access privileges; see Section 5.8 for details |
| spcoptions | text[] | Nullable | Tablespace-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