Skip to content

Commit 2a4d96e

Browse files
committed
Doc: Clarify locks taken when using ALTER TABLE ATTACH PARTITION
Since 898e5e3, this command uses partially ShareUpdateExclusiveLock, but the docs did not get the call. Author: Justin Pryzby Reviewed-by: Amit Langote, Álvaro Herrera, Michael Paquier Discussion: https://postgr.es/m/20191028001207.GB23808@telsasoft.com Backpatch-through: 12
1 parent ea88133 commit 2a4d96e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,13 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
901901
the scan of the new partition, it is always skipped when the default
902902
partition is a foreign table.
903903
</para>
904+
905+
<para>
906+
Attaching a partition acquires a
907+
<literal>SHARE UPDATE EXCLUSIVE</literal> lock on the parent table,
908+
in addition to <literal>ACCESS EXCLUSIVE</literal> locks on the table
909+
to be attached and on the default partition (if any).
910+
</para>
904911
</listitem>
905912
</varlistentry>
906913

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy