Skip to content

Commit f534e38

Browse files
committed
doc: Reword ALTER TABLE ATTACH restriction on NO INHERIT constraints
The previous wording is easy to read incorrectly; this change makes it simpler, 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 parent e88d824 commit f534e38

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

doc/src/sgml/ref/alter_table.sgml

+2-5
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)