aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/alter_table.sgml
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-04-28 15:44:35 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-04-28 15:44:35 -0400
commitd6b8d29419df0efad57f95c80b871745d1b55da6 (patch)
tree04627e39b8fc7d19c55179eb4bdd898d7fc9aa29 /doc/src/sgml/ref/alter_table.sgml
parentc93f8f3b8d3bc780892e2bf11192fbdd136fddfe (diff)
downloadpostgresql-d6b8d29419df0efad57f95c80b871745d1b55da6.tar.gz
postgresql-d6b8d29419df0efad57f95c80b871745d1b55da6.zip
Allow a partdesc-omitting-partitions to be cached
Makes partition descriptor acquisition faster during the transient period in which a partition is in the process of being detached. This also adds the restriction that only one partition can be in pending-detach state for a partitioned table. While at it, return find_inheritance_children() API to what it was before 71f4c8c6f74b, and create a separate find_inheritance_children_extended() that returns detailed info about detached partitions. (This incidentally fixes a bug in 8aba9322511 whereby a memory context holding a transient partdesc is reparented to a NULL PortalContext, leading to permanent leak of that memory. The fix is to no longer rely on reparenting contexts to PortalContext. Reported by Amit Langote.) Per gripe from Amit Langote Discussion: https://postgr.es/m/CA+HiwqFgpP1LxJZOBYGt9rpvTjXXkg5qG2+Xch2Z1Q7KrqZR1A@mail.gmail.com
Diffstat (limited to 'doc/src/sgml/ref/alter_table.sgml')
-rw-r--r--doc/src/sgml/ref/alter_table.sgml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index 39927be41ed..6166b263345 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -986,6 +986,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
If <literal>FINALIZE</literal> is specified, a previous
<literal>DETACH CONCURRENTLY</literal> invocation that was cancelled or
interrupted is completed.
+ At most one partition in a partitioned table can be pending detach at
+ a time.
</para>
</listitem>
</varlistentry>