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

Commit6f45247

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 parentee67b73 commit6f45247

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -984,20 +984,18 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
984984
<para>
985985
A partition using <literal>FOR VALUES</literal> uses same syntax for
986986
<replaceable class="parameter">partition_bound_spec</replaceable> as
987-
<link linkend="sql-createtable"><command>CREATE TABLE</command></link>. The partition bound specification
987+
<link linkend="sql-createtable"><command>CREATE TABLE</command></link>.
988+
The partition bound specification
988989
must correspond to the partitioning strategy and partition key of the
989990
target table. The table to be attached must have all the same columns
990991
as the target table and no more; moreover, the column types must also
991992
match. Also, it must have all the <literal>NOT NULL</literal> and
992-
<literal>CHECK</literal> constraints of the target table. Currently
993+
<literal>CHECK</literal> constraints of the target table, not marked
994+
<literal>NO INHERIT</literal>. Currently
993995
<literal>FOREIGN KEY</literal> constraints are not considered.
994996
<literal>UNIQUE</literal> and <literal>PRIMARY KEY</literal> constraints
995997
from the parent table will be created in the partition, if they don't
996998
already exist.
997-
If any of the <literal>CHECK</literal> constraints of the table being
998-
attached are marked <literal>NO INHERIT</literal>, the command will fail;
999-
such constraints must be recreated without the
1000-
<literal>NO INHERIT</literal> clause.
1001999
</para>
10021000

10031001
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp