mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-05 10:49:21 +02:00
doc: Mention the level of locks taken on objects in COMMENT
This information was nowhere to be found. This adds one note on the page of COMMENT, and one note in the section dedicated to explicit locking, both telling that a SHARE UPDATE EXCLUSIVE lock is taken on the object commented. Author: Nikolai Berkoff Reviewed-by: Laurenz Albe Discussion: https://postgr.es/m/_0HDHIGcCdCsUyXn22QwI2FEuNR6Fs71rtgGX6hfyBlUh5rrnE2qMmvIFu9EY4Pijr2gUmJEAXCjuNU2Oxku9TryLp9CdHllpsCfN3gD0-Y=@pm.me Backpatch-through: 10
This commit is contained in:
parent
99aa0ff68a
commit
44ab2dac12
@ -950,7 +950,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
|
|||||||
<para>
|
<para>
|
||||||
Acquired by <command>VACUUM</command> (without <option>FULL</option>),
|
Acquired by <command>VACUUM</command> (without <option>FULL</option>),
|
||||||
<command>ANALYZE</command>, <command>CREATE INDEX CONCURRENTLY</command>,
|
<command>ANALYZE</command>, <command>CREATE INDEX CONCURRENTLY</command>,
|
||||||
<command>CREATE STATISTICS</command> and
|
<command>CREATE STATISTICS</command>, <command>COMMENT ON</command> and
|
||||||
<command>ALTER TABLE VALIDATE</command> and other
|
<command>ALTER TABLE VALIDATE</command> and other
|
||||||
<command>ALTER TABLE</command> variants (for full details see
|
<command>ALTER TABLE</command> variants (for full details see
|
||||||
<xref linkend="sql-altertable"/>).
|
<xref linkend="sql-altertable"/>).
|
||||||
|
@ -90,6 +90,11 @@ COMMENT ON
|
|||||||
Comments are automatically dropped when their object is dropped.
|
Comments are automatically dropped when their object is dropped.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
A <literal>SHARE UPDATE EXCLUSIVE</literal> lock is acquired on the
|
||||||
|
object to be commented.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For most kinds of object, only the object's owner can set the comment.
|
For most kinds of object, only the object's owner can set the comment.
|
||||||
Roles don't have owners, so the rule for <literal>COMMENT ON ROLE</literal> is
|
Roles don't have owners, so the rule for <literal>COMMENT ON ROLE</literal> is
|
||||||
|
Loading…
Reference in New Issue
Block a user