18
18
19
19
<refsynopsisdiv>
20
20
<synopsis>
21
- CREATE COLLATION <replaceable>name</replaceable> (
21
+ CREATE COLLATION[ IF NOT EXISTS ] <replaceable>name</replaceable> (
22
22
[ LOCALE = <replaceable>locale</replaceable>, ]
23
23
[ LC_COLLATE = <replaceable>lc_collate</replaceable>, ]
24
24
[ LC_CTYPE = <replaceable>lc_ctype</replaceable> ]
25
25
)
26
- CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_collation</replaceable>
26
+ CREATE COLLATION[ IF NOT EXISTS ] <replaceable>name</replaceable> FROM <replaceable>existing_collation</replaceable>
27
27
</synopsis>
28
28
</refsynopsisdiv>
29
29
@@ -47,6 +47,17 @@ CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_coll
47
47
<title>Parameters</title>
48
48
49
49
<variablelist>
50
+ <varlistentry>
51
+ <term><literal>IF NOT EXISTS</literal></term>
52
+ <listitem>
53
+ <para>
54
+ Do not throw an error if a collation with the same name already exists.
55
+ A notice is issued in this case. Note that there is no guarantee that
56
+ the existing collation is anything like the one that would have been created.
57
+ </para>
58
+ </listitem>
59
+ </varlistentry>
60
+
50
61
<varlistentry>
51
62
<term><replaceable>name</replaceable></term>
52
63