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

Commitf534e38

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 parente88d824 commitf534e38

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
@@ -922,15 +922,12 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
922922
target table. The table to be attached must have all the same columns
923923
as the target table and no more; moreover, the column types must also
924924
match. Also, it must have all the <literal>NOT NULL</literal> and
925-
<literal>CHECK</literal> constraints of the target table. Currently
925+
<literal>CHECK</literal> constraints of the target table, not marked
926+
<literal>NO INHERIT</literal>. Currently
926927
<literal>FOREIGN KEY</literal> constraints are not considered.
927928
<literal>UNIQUE</literal> and <literal>PRIMARY KEY</literal> constraints
928929
from the parent table will be created in the partition, if they don't
929930
already exist.
930-
If any of the <literal>CHECK</literal> constraints of the table being
931-
attached are marked <literal>NO INHERIT</literal>, the command will fail;
932-
such constraints must be recreated without the
933-
<literal>NO INHERIT</literal> clause.
934931
</para>
935932

936933
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp