]> granicus.if.org Git - postgresql/commitdiff
Adjust ALTER TABLE docs on partitioned constraints
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Feb 2018 15:08:55 +0000 (12:08 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Feb 2018 15:08:55 +0000 (12:08 -0300)
Move the "additional restrictions" comment to ALTER TABLE ADD
CONSTRAINT instead of ADD CONSTRAINT USING INDEX; and in the latter
instead indicate that partitioned tables are unsupported

Noted by David G. Johnston
Discussion: https://postgr.es/m/CAKFQuwY4Ld7ecxL_KAmaxwt0FUu5VcPPN2L4dh+3BeYbrdBa5g@mail.gmail.com

doc/src/sgml/ref/alter_table.sgml

index 5be56d4b287a862c80f3391fbb58cac787ad938f..afe213910c75713e531b6c71db0646e5ce7f7fe0 100644 (file)
@@ -370,6 +370,12 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
       the table, until it is validated by using the <literal>VALIDATE
       CONSTRAINT</literal> option.
      </para>
+
+     <para>
+      Additional restrictions apply when unique or primary key constraints
+      are added to partitioned tables; see <xref linkend="sql-createtable" />.
+     </para>
+
     </listitem>
    </varlistentry>
 
@@ -413,8 +419,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
      </para>
 
      <para>
-      Additional restrictions apply when unique or primary key constraints
-      are added to partitioned tables; see <xref linkend="sql-createtable" />.
+      This form is not currently supported on partitioned tables.
      </para>
 
      <note>