1ALTER TABLESPACE()               SQL Commands               ALTER TABLESPACE()
2
3
4

NAME

6       ALTER TABLESPACE - change the definition of a tablespace
7
8

SYNOPSIS

10       ALTER TABLESPACE name RENAME TO newname
11       ALTER TABLESPACE name OWNER TO newowner
12
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   The name of an existing tablespace.
23
24       newname
25              The  new  name of the tablespace. The new name cannot begin with
26              pg_, as such names are reserved for system tablespaces.
27
28       newowner
29              The new owner of the tablespace.
30

EXAMPLES

32       Rename tablespace index_space to fast_raid:
33
34       ALTER TABLESPACE index_space RENAME TO fast_raid;
35
36
37       Change the owner of tablespace index_space:
38
39       ALTER TABLESPACE index_space OWNER TO mary;
40
41

COMPATIBILITY

43       There is no ALTER TABLESPACE statement in the SQL standard.
44

SEE ALSO

46       CREATE    TABLESPACE    [create_tablespace(7)],     DROP     TABLESPACE
47       [drop_tablespace(l)]
48
49
50
51SQL - Language Statements         2008-06-08                ALTER TABLESPACE()
Impressum