# ALTER_TABLESPACE(7) - man - phpMan

ALTER [TABLESPACE(7)](https://www.chedong.com/phpMan.php/man/TABLESPACE/7/markdown)                PostgreSQL 14.23 Documentation                ALTER [TABLESPACE(7)](https://www.chedong.com/phpMan.php/man/TABLESPACE/7/markdown)



## NAME
       ALTER_TABLESPACE - change the definition of a tablespace

## SYNOPSIS
       ALTER TABLESPACE _name_ RENAME TO _new_name_
       ALTER TABLESPACE _name_ OWNER TO { _new_owner_ | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
       ALTER TABLESPACE _name_ SET ( _tablespace_option_ = _value_ [, ... ] )
       ALTER TABLESPACE _name_ RESET ( _tablespace_option_ [, ... ] )

## DESCRIPTION
       **ALTER** **TABLESPACE** can be used to change the definition of a tablespace.

       You must own the tablespace to change the definition of a tablespace. To alter the owner, you
       must also be a direct or indirect member of the new owning role. (Note that superusers have
       these privileges automatically.)

## PARAMETERS
       _name_
           The name of an existing tablespace.

       _new_name_
           The new name of the tablespace. The new name cannot begin with pg_, as such names are
           reserved for system tablespaces.

       _new_owner_
           The new owner of the tablespace.

       _tablespace_option_
           A tablespace parameter to be set or reset. Currently, the only available parameters are
           _seq_page_cost_, _random_page_cost_, _effective_io_concurrency_ and _maintenance_io_concurrency_.
           Setting these values for a particular tablespace will override the planner's usual
           estimate of the cost of reading pages from tables in that tablespace, and the executor's
           prefetching behavior, as established by the configuration parameters of the same name
           (see seq_page_cost, random_page_cost, effective_io_concurrency,
           maintenance_io_concurrency). This may be useful if one tablespace is located on a disk
           which is faster or slower than the remainder of the I/O subsystem.

## EXAMPLES
       Rename tablespace index_space to fast_raid:

           ALTER TABLESPACE index_space RENAME TO fast_raid;

       Change the owner of tablespace index_space:

           ALTER TABLESPACE index_space OWNER TO mary;

## COMPATIBILITY
       There is no **ALTER** **TABLESPACE** statement in the SQL standard.

## SEE ALSO
       CREATE TABLESPACE (**CREATE**___**[TABLESPACE**(7)](https://www.chedong.com/phpMan.php/man/TABLESPACE/7/markdown)), DROP TABLESPACE (**DROP**___**[TABLESPACE**(7)](https://www.chedong.com/phpMan.php/man/TABLESPACE/7/markdown))



PostgreSQL 14.23                                2026                             ALTER [TABLESPACE(7)](https://www.chedong.com/phpMan.php/man/TABLESPACE/7/markdown)
