Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcda0240

Browse files
committed
Document partitiong tables ancillary object handling some more
Add a couple of lines to make it explicit that indexes, constraints,triggers are added, removed, or left alone.Backpatch to pg11.Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/20200421162038.GA18628@alvherre.pgsql
1 parent5a4efd1 commitcda0240

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎doc/src/sgml/ref/alter_table.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,9 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
849849
Note that if the existing table is a foreign table, it is currently not
850850
allowed to attach the table as a partition of the target table if there
851851
are <literal>UNIQUE</literal> indexes on the target table. (See also
852-
<xref linkend="sql-createforeigntable"/>.)
852+
<xref linkend="sql-createforeigntable"/>.) For each user-defined
853+
row-level trigger that exists in the target table, a corresponding one
854+
is created in the attached table.
853855
</para>
854856

855857
<para>
@@ -918,10 +920,11 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
918920
<term><literal>DETACH PARTITION</literal> <replaceable class="parameter">partition_name</replaceable></term>
919921
<listitem>
920922
<para>
921-
This form detaches specified partition of the target table. The detached
923+
This form detachesthespecified partition of the target table. The detached
922924
partition continues to exist as a standalone table, but no longer has any
923925
ties to the table from which it was detached. Any indexes that were
924-
attached to the target table's indexes are detached.
926+
attached to the target table's indexes are detached. Any triggers that
927+
were created as clones of those in the target table are removed.
925928
</para>
926929
</listitem>
927930
</varlistentry>

‎doc/src/sgml/ref/create_table.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
399399
Creates the table as a <firstterm>partition</firstterm> of the specified
400400
parent table. The table can be created either as a partition for specific
401401
values using <literal>FOR VALUES</literal> or as a default partition
402-
using <literal>DEFAULT</literal>.
402+
using <literal>DEFAULT</literal>. Any indexes, constraints and
403+
user-defined row-level triggers that exist in the parent table are cloned
404+
on the new partition.
403405
</para>
404406

405407
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp