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

Commit477830c

Browse files
committed
doc: Reword ALTER TABLE ATTACH restriction on NO INHERIT constraints
The previous wording is easy to read incorrectly; this change makes itsimpler, less ambiguous, and less prominent.Backpatch to all live branches.Reviewed-by: Amit Langote <amitlangote09@gmail.com>Discussion:https://postgr.es/m/202411051201.zody6mld7vkw@alvherre.pgsql
1 parent50c1453 commit477830c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,15 +901,12 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
901901
target table. The table to be attached must have all the same columns
902902
as the target table and no more; moreover, the column types must also
903903
match. Also, it must have all the <literal>NOT NULL</literal> and
904-
<literal>CHECK</literal> constraints of the target table. Currently
904+
<literal>CHECK</literal> constraints of the target table, not marked
905+
<literal>NO INHERIT</literal>. Currently
905906
<literal>FOREIGN KEY</literal> constraints are not considered.
906907
<literal>UNIQUE</literal> and <literal>PRIMARY KEY</literal> constraints
907908
from the parent table will be created in the partition, if they don't
908909
already exist.
909-
If any of the <literal>CHECK</literal> constraints of the table being
910-
attached are marked <literal>NO INHERIT</literal>, the command will fail;
911-
such constraints must be recreated without the
912-
<literal>NO INHERIT</literal> clause.
913910
</para>
914911

915912
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp