]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clarify SPLIT PARTITION bound requirements in docs
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 19 May 2026 10:39:53 +0000 (13:39 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 19 May 2026 10:54:55 +0000 (13:54 +0300)
commit83df16f1fa5ccce72534ddad51fd0109da1e49e2
treee8d498f0b00278ef046c25ddecc35c6c52a83ad5
parent971017c49599b6666029ca46ee00378d8836f336
Clarify SPLIT PARTITION bound requirements in docs

The documentation said that the bounds of new partitions should not
overlap and that their combined bounds should equal the bounds of the
split partition.  That is misleading when a new DEFAULT partition is
specified, because the explicit partitions may cover only part of the
split partition while the DEFAULT partition covers the rest.

Clarify that new non-DEFAULT partition bounds must not overlap with
other new or existing partitions and must be contained within the bounds
of the split partition.  Also state that the combined bounds must exactly
match the split partition only when no new DEFAULT partition is specified.

While here, improve nearby wording about hash-partitioned target tables
and splitting a DEFAULT partition with the same partition name.

Author: Chao Li <lic@highgo.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Discussion: https://postgr.es/m/C18878AB-DEB2-4A61-9995-A035DD644B81@gmail.com
doc/src/sgml/ref/alter_table.sgml