RefLib

Reference library for AI

Back

postgresql_16:7.1.85 CREATE TABLESPACE

PostgreSQL 16 > Reference > SQL Commands > CREATE TABLESPACE

define a new tablespace

CREATE TABLESPACE tablespace_name
    [ OWNER { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER } ]
    LOCATION 'directory'
    [ WITH ( tablespace_option = value [, ... ] ) ]
CREATE TABLESPACE tablespace_name
    [ OWNER { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER } ]
    LOCATION 'directory'
    [ WITH ( tablespace_option = value [, ... ] ) ]

Subsections

Back