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

Commit8803506

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 parentd12bdba commit8803506

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
@@ -872,7 +872,9 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
872872
Note that if the existing table is a foreign table, it is currently not
873873
allowed to attach the table as a partition of the target table if there
874874
are <literal>UNIQUE</literal> indexes on the target table. (See also
875-
<xref linkend="sql-createforeigntable"/>.)
875+
<xref linkend="sql-createforeigntable"/>.) For each user-defined
876+
row-level trigger that exists in the target table, a corresponding one
877+
is created in the attached table.
876878
</para>
877879

878880
<para>
@@ -941,10 +943,11 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
941943
<term><literal>DETACH PARTITION</literal> <replaceable class="parameter">partition_name</replaceable></term>
942944
<listitem>
943945
<para>
944-
This form detaches specified partition of the target table. The detached
946+
This form detachesthespecified partition of the target table. The detached
945947
partition continues to exist as a standalone table, but no longer has any
946948
ties to the table from which it was detached. Any indexes that were
947-
attached to the target table's indexes are detached.
949+
attached to the target table's indexes are detached. Any triggers that
950+
were created as clones of those in the target table are removed.
948951
</para>
949952
</listitem>
950953
</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