Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a4d96e

Browse files
committed
Doc: Clarify locks taken when using ALTER TABLE ATTACH PARTITION
Since898e5e3, this command uses partially ShareUpdateExclusiveLock,but the docs did not get the call.Author: Justin PryzbyReviewed-by: Amit Langote, Álvaro Herrera, Michael PaquierDiscussion:https://postgr.es/m/20191028001207.GB23808@telsasoft.comBackpatch-through: 12
1 parentea88133 commit2a4d96e

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)

[8]ページ先頭

©2009-2025 Movatter.jp