Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7212c77

Browse files
committed
ALTER TABLE sometimes takes only ShareUpdateExclusiveLock.
Along the way, be more consistent about the wording we use here.
1 parent df63aac commit 7212c77

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/mvcc.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,8 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
656656

657657
<para>
658658
Acquired by <command>VACUUM</command> (without <option>FULL</option>),
659-
<command>ANALYZE</>, and <command>CREATE INDEX CONCURRENTLY</>.
659+
<command>ANALYZE</>, <command>CREATE INDEX CONCURRENTLY</>, and
660+
some forms of <command>ALTER TABLE</command>.
660661
</para>
661662
</listitem>
662663
</varlistentry>
@@ -699,7 +700,7 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
699700
<para>
700701
Acquired by <command>CREATE TRIGGER</command>,
701702
<command>CREATE RULE</command> (except for <literal>ON SELECT</>
702-
rules) and in some cases <command>ALTER TABLE</command>.
703+
rules) and some forms of <command>ALTER TABLE</command>.
703704
</para>
704705
</listitem>
705706
</varlistentry>
@@ -747,7 +748,7 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
747748
Acquired by the <command>DROP TABLE</command>,
748749
<command>TRUNCATE</command>, <command>REINDEX</command>,
749750
<command>CLUSTER</command>, and <command>VACUUM FULL</command>
750-
commands, as well as most variants of <command>ALTER TABLE</>.
751+
commands, and some forms of <command>ALTER TABLE</>.
751752
This is also the default lock mode for <command>LOCK TABLE</command>
752753
statements that do not specify a mode explicitly.
753754
</para>

0 commit comments

Comments
 (0)