Skip to content

Commit 956451e

Browse files
committed
Clarify the default partition's role
Reviewed by Tom Lane and Amit Langote Discussion: https://postgr.es/m/[email protected]
1 parent 15077ab commit 956451e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

doc/src/sgml/ref/create_table.sgml

+5-7
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
399399
Creates the table as a <firstterm>partition</firstterm> of the specified
400400
parent table. The table can be created either as a partition for specific
401401
values using <literal>FOR VALUES</literal> or as a default partition
402-
using <literal>DEFAULT</literal>. This option is not available for
403-
hash-partitioned tables.
402+
using <literal>DEFAULT</literal>.
404403
</para>
405404

406405
<para>
@@ -491,16 +490,15 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
491490

492491
<para>
493492
If <literal>DEFAULT</literal> is specified, the table will be
494-
created as a default partition of the parent table. The parent can
495-
either be a list or range partitioned table. A partition key value
493+
created as the default partition of the parent table. This option
494+
is not available for hash-partitioned tables. A partition key value
496495
not fitting into any other partition of the given parent will be
497-
routed to the default partition. There can be only one default
498-
partition for a given parent table.
496+
routed to the default partition.
499497
</para>
500498

501499
<para>
502500
When a table has an existing <literal>DEFAULT</literal> partition and
503-
a new partition is added to it, the existing default partition must
501+
a new partition is added to it, the default partition must
504502
be scanned to verify that it does not contain any rows which properly
505503
belong in the new partition. If the default partition contains a
506504
large number of rows, this may be slow. The scan will be skipped if

0 commit comments

Comments
 (0)