]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add note about how each partition's default value is treated, into the doc.
authorFujii Masao <fujii@postgresql.org>
Thu, 26 Dec 2019 06:07:43 +0000 (15:07 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 5 Feb 2020 04:58:55 +0000 (13:58 +0900)
Column defaults may be specified separately for each partition.
But INSERT via a partitioned table ignores those partition's default values.
The former is documented, but the latter restriction not.
This commit adds the note about that restriction into the document.

Back-patch to v10 where partitioning was introduced.

Author: Fujii Masao
Reviewed-by: Amit Langote
Discussion: https://postgr.es/m/CAHGQGwEs-59omrfGF7hOHz9iMME3RbKy5ny+iftDx3LHTEn9sA@mail.gmail.com

doc/src/sgml/ref/create_table.sgml

index 4f27daf1ae621d032a1f4a046bd59e71feb69091..8ff5cb6136d536b2a1bc8f2dd00cd1554966bbf9 100644 (file)
@@ -539,7 +539,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
       additional <literal>CHECK</literal> constraints; additional constraints with
       the same name and condition as in the parent will be merged with the
       parent constraint.  Defaults may be specified separately for each
-      partition.
+      partition. But note that a partition's default value is not applied
+      when inserting a tuple through a partitioned table.
      </para>
 
      <para>