]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: Clarify lock levels taken during ATTACH PARTITION
authorDavid Rowley <drowley@postgresql.org>
Wed, 28 Jul 2021 03:01:40 +0000 (15:01 +1200)
committerDavid Rowley <drowley@postgresql.org>
Wed, 28 Jul 2021 03:01:40 +0000 (15:01 +1200)
commitaa1e9211ecf7ef410b4313f0e061de087aed0aa2
treefaa726c35ec8df256b3061fa09e84df5b9d0638d
parentb8f91d7f926368115c27b978c939174c96df1a5f
Doc: Clarify lock levels taken during ATTACH PARTITION

It wasn't all that clear which lock levels, if any, would be held on the
DEFAULT partition during an ATTACH PARTITION operation.

Also, clarify which locks will be taken if the DEFAULT partition or the
table being attached are themselves partitioned tables.

Here I'm only backpatching to v12 as before then we obtained an ACCESS
EXCLUSIVE lock on the partitioned table.  It seems much less relevant to
mention which locks are taken on other tables when the partitioned table
itself is locked with an ACCESS EXCLUSIVE lock.

Author: Matthias van de Meent, David Rowley
Discussion: https://postgr.es/m/CAEze2WiTB6iwrV8W_J=fnrnZ7fowW3qu-8iQ8zCHP3FiQ6+o-A@mail.gmail.com
Backpatch-through: 12
doc/src/sgml/ddl.sgml
doc/src/sgml/ref/alter_table.sgml