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

Skip to content

Commit 5042d16

Browse files
committed
Remove old claim that ExclusiveLock is sometimes taken on system catalogs.
We used to do that on pg_listener, but pg_listener is no more. Also add a bit more documentation for ShareRowExclusive mode.
1 parent 558d1c9 commit 5042d16

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
@@ -692,6 +692,8 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
692692
<literal>SHARE</literal>, <literal>SHARE ROW
693693
EXCLUSIVE</literal>, <literal>EXCLUSIVE</literal>, and
694694
<literal>ACCESS EXCLUSIVE</literal> lock modes.
695+
This mode protects a table against concurrent data changes, and
696+
is self-exclusive so that only one session can hold it at a time.
695697
</para>
696698

697699
<para>
@@ -719,9 +721,8 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
719721
</para>
720722

721723
<para>
722-
This lock mode is not automatically acquired on user tables by any
723-
<productname>PostgreSQL</productname> command. However it is
724-
acquired on certain system catalogs in some operations.
724+
This lock mode is not automatically acquired on tables by any
725+
<productname>PostgreSQL</productname> command.
725726
</para>
726727
</listitem>
727728
</varlistentry>

0 commit comments

Comments
 (0)