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

NAME

6       ALTER_COLLATION - change the definition of a collation
7

SYNOPSIS

9       ALTER COLLATION name RENAME TO new_name
10       ALTER COLLATION name OWNER TO new_owner
11       ALTER COLLATION name SET SCHEMA new_schema
12

DESCRIPTION

14       ALTER COLLATION changes the definition of a collation.
15
16       You must own the collation to use ALTER COLLATION. To alter the owner,
17       you must also be a direct or indirect member of the new owning role,
18       and that role must have CREATE privilege on the collation's schema.
19       (These restrictions enforce that altering the owner doesn't do anything
20       you couldn't do by dropping and recreating the collation. However, a
21       superuser can alter ownership of any collation anyway.)
22

PARAMETERS

24       name
25           The name (optionally schema-qualified) of an existing collation.
26
27       new_name
28           The new name of the collation.
29
30       new_owner
31           The new owner of the collation.
32
33       new_schema
34           The new schema for the collation.
35

EXAMPLES

37       To rename the collation de_DE to german:
38
39           ALTER COLLATION "de_DE" RENAME TO german;
40
41       To change the owner of the collation en_US to joe:
42
43           ALTER COLLATION "en_US" OWNER TO joe;
44

COMPATIBILITY

46       There is no ALTER COLLATION statement in the SQL standard.
47

SEE ALSO

49       CREATE COLLATION (CREATE_COLLATION(7)), DROP COLLATION
50       (DROP_COLLATION(7))
51
52
53
54PostgreSQL 9.2.24                 2017-11-06                ALTER COLLATION(7)
Impressum