From 70de0abdb7c6dce24dd5c0e276708ca7c534f99f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 30 Jul 2018 22:01:04 +0200 Subject: [PATCH] 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 Author: Kyotaro HORIGUCHI --- doc/src/sgml/mvcc.sgml | 3 +-- doc/src/sgml/ref/create_collation.sgml | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/mvcc.sgml b/doc/src/sgml/mvcc.sgml index 24613e3c75..73934e5cf3 100644 --- a/doc/src/sgml/mvcc.sgml +++ b/doc/src/sgml/mvcc.sgml @@ -970,8 +970,7 @@ ERROR: could not serialize access due to read/write dependencies among transact - Acquired by CREATE COLLATION, - CREATE TRIGGER, and many forms of + Acquired by CREATE TRIGGER and many forms of ALTER TABLE (see ). diff --git a/doc/src/sgml/ref/create_collation.sgml b/doc/src/sgml/ref/create_collation.sgml index 5bc9af5499..038797fce1 100644 --- a/doc/src/sgml/ref/create_collation.sgml +++ b/doc/src/sgml/ref/create_collation.sgml @@ -162,6 +162,13 @@ CREATE COLLATION [ IF NOT EXISTS ] name FROM Notes + + CREATE COLLATION takes a SHARE ROW + EXCLUSIVE lock, which is self-conflicting, on the + pg_collation system catalog, so only one + CREATE COLLATION command can run at a time. + + Use DROP COLLATION to remove user-defined collations. -- 2.40.0