diff options
author | Fujii Masao <fujii@postgresql.org> | 2019-12-26 15:07:43 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2020-02-05 14:04:01 +0900 |
commit | 80dece684f863862d68ba3cc726a4bde9d2ce568 (patch) | |
tree | 027cb50a98eafc41479f73234bdf8a45c733146f | |
parent | 380bc8829594b27d0924e617ae705422ec53eca1 (diff) |
Add note about how each partition's default value is treated, into the doc.
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
-rw-r--r-- | doc/src/sgml/ref/create_table.sgml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 8836f04f54e..8791672db4b 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -353,7 +353,8 @@ FROM ( { <replaceable class="PARAMETER">numeric_literal</replaceable> | <replace additional <literal>CHECK</> 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> |