Skip to content

Commit 477830c

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 50c1453 commit 477830c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy