2 doc/src/sgml/ref/alter_collation.sgml
3 PostgreSQL documentation
6 <refentry id="SQL-ALTERCOLLATION">
8 <refentrytitle>ALTER COLLATION</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
14 <refname>ALTER COLLATION</refname>
15 <refpurpose>change the definition of a collation</refpurpose>
18 <indexterm zone="sql-altercollation">
19 <primary>ALTER COLLATION</primary>
24 ALTER COLLATION <replaceable>name</replaceable> RENAME TO <replaceable>new_name</replaceable>
25 ALTER COLLATION <replaceable>name</replaceable> OWNER TO <replaceable>new_owner</replaceable>
26 ALTER COLLATION <replaceable>name</replaceable> SET SCHEMA <replaceable>new_schema</replaceable>
31 <title>Description</title>
34 <command>ALTER COLLATION</command> changes the definition of a
39 You must own the collation to use <command>ALTER COLLATION</>.
40 To alter the owner, you must also be a direct or indirect member of the new
41 owning role, and that role must have <literal>CREATE</literal> privilege on
42 the collation's schema. (These restrictions enforce that altering the
43 owner doesn't do anything you couldn't do by dropping and recreating the
44 collation. However, a superuser can alter ownership of any collation
50 <title>Parameters</title>
54 <term><replaceable class="parameter">name</replaceable></term>
57 The name (optionally schema-qualified) of an existing collation.
63 <term><replaceable class="parameter">new_name</replaceable></term>
66 The new name of the collation.
72 <term><replaceable class="parameter">new_owner</replaceable></term>
75 The new owner of the collation.
81 <term><replaceable class="parameter">new_schema</replaceable></term>
84 The new schema for the collation.
92 <title>Examples</title>
95 To rename the collation <literal>de_DE</literal> to
96 <literal>german</literal>:
98 ALTER COLLATION "de_DE" RENAME TO german;
103 To change the owner of the collation <literal>en_US</literal> to
104 <literal>joe</literal>:
106 ALTER COLLATION "en_US" OWNER TO joe;
107 </programlisting></para>
111 <title>Compatibility</title>
114 There is no <command>ALTER COLLATION</command> statement in the SQL
120 <title>See Also</title>
122 <simplelist type="inline">
123 <member><xref linkend="sql-createcollation"></member>
124 <member><xref linkend="sql-dropcollation"></member>