pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION 4+ messages / 1 participants [nested] [flat]
* pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION @ 2021-07-28 03:03 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2021-07-28 03:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8709228775b549a2388e6568f463a4115e5a4c10 Modified Files -------------- doc/src/sgml/ddl.sgml | 28 +++++++++++++++++++++++++--- doc/src/sgml/ref/alter_table.sgml | 13 +++++++++++-- 2 files changed, 36 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION @ 2021-07-28 03:03 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2021-07-28 03:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5a8a9be08307a1c06fbed4510667de6b4f40fe56 Modified Files -------------- doc/src/sgml/ddl.sgml | 28 +++++++++++++++++++++++++--- doc/src/sgml/ref/alter_table.sgml | 13 +++++++++++-- 2 files changed, 36 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION @ 2021-07-28 03:03 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2021-07-28 03:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/aa1e9211ecf7ef410b4313f0e061de087aed0aa2 Modified Files -------------- doc/src/sgml/ddl.sgml | 28 +++++++++++++++++++++++++--- doc/src/sgml/ref/alter_table.sgml | 13 +++++++++++-- 2 files changed, 36 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION @ 2021-07-28 03:03 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2021-07-28 03:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c590904d50cc93b12fc895041c34e1ea821e768c Modified Files -------------- doc/src/sgml/ddl.sgml | 28 +++++++++++++++++++++++++--- doc/src/sgml/ref/alter_table.sgml | 13 +++++++++++-- 2 files changed, 36 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-07-28 03:03 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-28 03:03 pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION David Rowley <drowley@postgresql.org> 2021-07-28 03:03 pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION David Rowley <drowley@postgresql.org> 2021-07-28 03:03 pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION David Rowley <drowley@postgresql.org> 2021-07-28 03:03 pgsql: Doc: Clarify lock levels taken during ATTACH PARTITION David Rowley <drowley@postgresql.org>
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