summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2019-08-08 20:03:14 +0000
committerAlvaro Herrera2019-08-08 20:05:59 +0000
commit956451e8bc9face2241d9a785e0d236a92f8e210 (patch)
treebbd1ce6a44414147b935df3eb5991002233bdd0e
parent15077ab63f29fd85ff519d1c456fda614774d28b (diff)
Clarify the default partition's role
Reviewed by Tom Lane and Amit Langote Discussion: https://postgr.es/m/20190806222735.GA9535@alvherre.pgsql
-rw-r--r--doc/src/sgml/ref/create_table.sgml12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index 9009addb9c0..c922954c64c 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -399,8 +399,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
Creates the table as a <firstterm>partition</firstterm> of the specified
parent table. The table can be created either as a partition for specific
values using <literal>FOR VALUES</literal> or as a default partition
- using <literal>DEFAULT</literal>. This option is not available for
- hash-partitioned tables.
+ using <literal>DEFAULT</literal>.
</para>
<para>
@@ -491,16 +490,15 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
<para>
If <literal>DEFAULT</literal> is specified, the table will be
- created as a default partition of the parent table. The parent can
- either be a list or range partitioned table. A partition key value
+ created as the default partition of the parent table. This option
+ is not available for hash-partitioned tables. A partition key value
not fitting into any other partition of the given parent will be
- routed to the default partition. There can be only one default
- partition for a given parent table.
+ routed to the default partition.
</para>
<para>
When a table has an existing <literal>DEFAULT</literal> partition and
- a new partition is added to it, the existing default partition must
+ a new partition is added to it, the default partition must
be scanned to verify that it does not contain any rows which properly
belong in the new partition. If the default partition contains a
large number of rows, this may be slow. The scan will be skipped if