pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
6+ messages / 1 participants
[nested] [flat]

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f333d35428c1cba8d35065b6dbb2dd46e18bd929

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/aa4416dcd924a49e766baae9c73e884249d687d0

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/61a9b814c553439854e9515ecb6458f77402443a

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1d676ffd41be443d0c7a715f3e03841430ba4a2b

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE
@ 2020-04-10 17:13  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-04-10 17:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a88e5886c59c0e1e01f424a1fcb477db82ddd3af

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-04-10 17:13 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>
2020-04-10 17:13 pgsql: Doc: clarify locking requirements for ALTER TABLE ADD FOREIGN KE Tom Lane <tgl@sss.pgh.pa.us>

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