Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KEY.
authorTom Lane <[email protected]>
Fri, 10 Apr 2020 17:12:58 +0000 (13:12 -0400)
committerTom Lane <[email protected]>
Fri, 10 Apr 2020 17:12:58 +0000 (13:12 -0400)
commit61a9b814c553439854e9515ecb6458f77402443a
tree2212fce79ce77519061112864bd26139b87a4b72
parent8f111150e68a0560dae67dda628296d5a26817b7
Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KEY.

The docs explained that a SHARE ROW EXCLUSIVE lock is needed on the
referenced table, but failed to say the same about the table being
altered.  Since the page says that ACCESS EXCLUSIVE lock is taken
unless otherwise stated, this left readers with the wrong conclusion.

Discussion: https://postgr.es/m/834603375.3470346.1586482852542@mail.yahoo.com
doc/src/sgml/ref/alter_table.sgml