1ALTER TABLESPACE(7)     PostgreSQL 9.2.24 Documentation    ALTER TABLESPACE(7)
2
3
4

NAME

6       ALTER_TABLESPACE - change the definition of a tablespace
7

SYNOPSIS

9       ALTER TABLESPACE name RENAME TO new_name
10       ALTER TABLESPACE name OWNER TO new_owner
11       ALTER TABLESPACE name SET ( tablespace_option = value [, ... ] )
12       ALTER TABLESPACE name RESET ( tablespace_option [, ... ] )
13

DESCRIPTION

15       ALTER TABLESPACE changes the definition of a tablespace.
16
17       You must own the tablespace to use ALTER TABLESPACE. To alter the
18       owner, you must also be a direct or indirect member of the new owning
19       role. (Note that superusers have these privileges automatically.)
20

PARAMETERS

22       name
23           The name of an existing tablespace.
24
25       new_name
26           The new name of the tablespace. The new name cannot begin with pg_,
27           as such names are reserved for system tablespaces.
28
29       new_owner
30           The new owner of the tablespace.
31
32       tablespace_parameter
33           A tablespace parameter to be set or reset. Currently, the only
34           available parameters are seq_page_cost and random_page_cost.
35           Setting either value for a particular tablespace will override the
36           planner's usual estimate of the cost of reading pages from tables
37           in that tablespace, as established by the configuration parameters
38           of the same name (see seq_page_cost, random_page_cost). This may be
39           useful if one tablespace is located on a disk which is faster or
40           slower than the remainder of the I/O subsystem.
41

EXAMPLES

43       Rename tablespace index_space to fast_raid:
44
45           ALTER TABLESPACE index_space RENAME TO fast_raid;
46
47       Change the owner of tablespace index_space:
48
49           ALTER TABLESPACE index_space OWNER TO mary;
50

COMPATIBILITY

52       There is no ALTER TABLESPACE statement in the SQL standard.
53

SEE ALSO

55       CREATE TABLESPACE (CREATE_TABLESPACE(7)), DROP TABLESPACE
56       (DROP_TABLESPACE(7))
57
58
59
60PostgreSQL 9.2.24                 2017-11-06               ALTER TABLESPACE(7)
Impressum