From 9be4d11f85fd4adac924b40eded963e74bb55171 Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Thu, 18 Apr 2024 15:40:44 -0500 Subject: [PATCH v7 7/7] doc review for ALTER TABLE ... SPLIT/MERGE PARTITION --- doc/src/sgml/ddl.sgml | 4 ++-- doc/src/sgml/ref/alter_table.sgml | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 026bfff70f3..01277b1d327 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -4384,7 +4384,7 @@ ALTER INDEX measurement_city_id_logdate_key There is also an option for merging multiple table partitions into - a single partition using the + a single partition using ALTER TABLE ... MERGE PARTITIONS. This feature simplifies the management of partitioned tables by allowing users to combine partitions that are no longer needed as @@ -4403,7 +4403,7 @@ ALTER TABLE measurement Similarly to merging multiple table partitions, there is an option for - splitting a single partition into multiple using the + splitting a single partition into multiple partitions using ALTER TABLE ... SPLIT PARTITION. This feature could come in handy when one partition grows too big and needs to be split into multiple. It's important to note that diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index fe36ff82e52..e52cfee840c 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -1136,16 +1136,16 @@ WITH ( MODULUS numeric_literal, REM If the split partition is a DEFAULT partition, one of the new partitions must be DEFAULT. In case one of the new partitions or one of existing partitions is DEFAULT, new partitions partition_name1, - partition_name2, ... can have spaces + partition_name2, ... can have gaps between partitions bounds. If the partitioned table does not have a DEFAULT partition, the DEFAULT partition can be defined as one of the new partitions. In case new partitions do not contain a DEFAULT partition and the partitioned table - does not have a DEFAULT partition, the following must be true: sum bounds of + does not have a DEFAULT partition, the following must be true: the sum bounds of new partitions partition_name1, partition_name2, ... should be - equal to bound of split partition partition_name. + equal to the bounds of split partition partition_name. One of the new partitions partition_name1, partition_name2, ... can have the same name as split partition partition_name @@ -1168,24 +1168,24 @@ WITH ( MODULUS numeric_literal, REM - This form merges several partitions into the one partition of the target table. - Hash-partitioning is not supported. If DEFAULT partition is not in the + This form merges several partitions of the target table into a single partition. + Hash-partitioning is not supported. If a DEFAULT partition is not in the list of partitions partition_name1, partition_name2 [, ...]: - For range-partitioned tables it is necessary that the ranges + For range-partitioned tables, it is necessary that the ranges of the partitions partition_name1, partition_name2 [, ...] can - be merged into one range without spaces and overlaps (otherwise an error + be merged into one range with neither gaps nor overlaps (otherwise an error will be generated). The combined range will be the range for the partition partition_name. - For list-partitioned tables the value lists of all partitions + For list-partitioned tables, the value lists of all partitions partition_name1, partition_name2 [, ...] are combined and form the list of values of partition @@ -1193,7 +1193,7 @@ WITH ( MODULUS numeric_literal, REM - If DEFAULT partition is in the list of partitions partition_name1, + If a DEFAULT partition is in the list of partitions partition_name1, partition_name2 [, ...]: @@ -1204,8 +1204,8 @@ WITH ( MODULUS numeric_literal, REM - For range- and list-partitioned tables the ranges and lists of values - of the merged partitions can be any. + For range- and list-partitioned tables, the ranges and lists of values + of the merged partitions can be anything. -- 2.39.3 (Apple Git-145)