Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 366aa37

Browse files
committed
Document lock obtained during partition detach
On partition detach, we acquire a SHARE lock on all tables that reference the partitioned table that we're detaching a partition from, but failed to document this fact. My oversight in commit f56f8f8. Repair. Backpatch to 12. Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/20210325180244.GA12738@alvherre.pgsql
1 parent 292b7d9 commit 366aa37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
925925
ties to the table from which it was detached. Any indexes that were
926926
attached to the target table's indexes are detached. Any triggers that
927927
were created as clones of those in the target table are removed.
928+
<literal>SHARE</literal> lock is obtained on any tables that reference
929+
this partitioned table in foreign key constraints.
928930
</para>
929931
</listitem>
930932
</varlistentry>

0 commit comments

Comments
 (0)