mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 03:16:55 +02:00
Doc: Clarify locks taken when using ALTER TABLE ATTACH PARTITION
Since 898e5e32
, 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
This commit is contained in:
parent
a7207a24d4
commit
4d04031dd2
@ -901,6 +901,13 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
|
|||||||
the scan of the new partition, it is always skipped when the default
|
the scan of the new partition, it is always skipped when the default
|
||||||
partition is a foreign table.
|
partition is a foreign table.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Attaching a partition acquires a
|
||||||
|
<literal>SHARE UPDATE EXCLUSIVE</literal> lock on the parent table,
|
||||||
|
in addition to <literal>ACCESS EXCLUSIVE</literal> locks on the table
|
||||||
|
to be attached and on the default partition (if any).
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user