Skip to content

Tablespace

A tablespace allows superusers to define an alternative location on the file system where the data files containing database objects (such as tables and indexes) can reside.

Properties

Property Type Required Description
name string The name of the tablespace function to create.
owner string The role that owns the tablespace function.
location string The directory that will be used for the tablespace. The directory must exist (CREATE TABLESPACE will not create it), should be empty, and must be owned by the PostgreSQL system user. The directory must be specified by an absolute path name.
options array of map
comment string An optional comment about the tablespace.

No other properties are accepted.


Source: schemata/tablespace.yml · Resolved JSON Schema: tablespace.json