From c820a81fba0a6c2388ec58fc0204ca833523e81e Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Sun, 27 Oct 2019 18:54:24 -0500 Subject: [PATCH v1 1/2] Mention reduced locking strength of ATTACH PARTITION.. See commit 898e5e32 --- doc/src/sgml/ref/alter_table.sgml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index c8dfa19..a184bed 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -900,6 +900,13 @@ WITH ( MODULUS numeric_literal, REM the scan of the new partition, it is always skipped when the default partition is a foreign table. + + + Attaching a partition acquires a SHARE UPDATE EXCLUSIVE + lock on the partitioned table, in addition to an + ACCESS EXCLUSIVE lock on the partition. + + -- 2.7.4