Commit 70de0abd authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Improve CREATE COLLATION locking documentation

Move out of the concurrency control chapter, where mostly only user
table locks are discussed, and move to CREATE COLLATION reference page.

Author: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Author: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
parent c0a55292
...@@ -970,8 +970,7 @@ ERROR: could not serialize access due to read/write dependencies among transact ...@@ -970,8 +970,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
</para> </para>
<para> <para>
Acquired by <command>CREATE COLLATION</command>, Acquired by <command>CREATE TRIGGER</command> and many forms of
<command>CREATE TRIGGER</command>, and many forms of
<command>ALTER TABLE</command> (see <xref linkend="sql-altertable"/>). <command>ALTER TABLE</command> (see <xref linkend="sql-altertable"/>).
</para> </para>
</listitem> </listitem>
......
...@@ -162,6 +162,13 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>name</replaceable> FROM <replace ...@@ -162,6 +162,13 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>name</replaceable> FROM <replace
<refsect1 id="sql-createcollation-notes"> <refsect1 id="sql-createcollation-notes">
<title>Notes</title> <title>Notes</title>
<para>
<command>CREATE COLLATION</command> takes a <literal>SHARE ROW
EXCLUSIVE</literal> lock, which is self-conflicting, on the
<structname>pg_collation</structname> system catalog, so only one
<command>CREATE COLLATION</command> command can run at a time.
</para>
<para> <para>
Use <command>DROP COLLATION</command> to remove user-defined collations. Use <command>DROP COLLATION</command> to remove user-defined collations.
</para> </para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment