pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
Date: Fri, 10 Apr 2020 17:13:15 +0000
Message-ID: <E1jMxDP-0000bv-9b@gemulon.postgresql.org> (raw)

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2cab4ad81bcb44ccd6591ed1fb54495c7301b42d

Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1jMxDP-0000bv-9b@gemulon.postgresql.org>
Permalink:  ../E1jMxDP-0000bv-9b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jMxDP-0000bv-9b@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
  In-Reply-To: <E1jMxDP-0000bv-9b@gemulon.postgresql.org>
  References: <E1jMxDP-0000bv-9b@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox