Fix typo
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 7 May 2021 15:47:22 +0000 (17:47 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 7 May 2021 15:53:34 +0000 (17:53 +0200)
src/backend/partitioning/partbounds.c
src/test/regress/expected/create_table.out
src/test/regress/sql/create_table.sql

index c9c789297d4df171cac943d3c97bf7f102a43fc6..d3dedfd784442c4174c16de77291f808517dfa09 100644 (file)
@@ -2899,7 +2899,7 @@ check_new_partition_bound(char *relname, Relation parent,
                                                                ereport(ERROR,
                                                                                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
                                                                                 errmsg("every hash partition modulus must be a factor of the next larger modulus"),
-                                                                                errdetail("The new modulus %d is not factor of %d, the modulus of existing partition \"%s\".",
+                                                                                errdetail("The new modulus %d is not factor of %d, the modulus of existing partition \"%s\".",
                                                                                                   spec->modulus, next_modulus,
                                                                                                   get_rel_name(partdesc->oids[boundinfo->indexes[offset + 1]]))));
                                                }
index a392df2d6a5068f2d365b078c6257ee9a05dc501..ad89dd05c142e7efd1df778ba60a3ada2a6bb7a3 100644 (file)
@@ -780,14 +780,14 @@ CREATE TABLE hash_parted (
 CREATE TABLE hpart_1 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 10, REMAINDER 0);
 CREATE TABLE hpart_2 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 50, REMAINDER 1);
 CREATE TABLE hpart_3 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 200, REMAINDER 2);
--- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
+-- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 25, REMAINDER 3);
 ERROR:  every hash partition modulus must be a factor of the next larger modulus
 DETAIL:  The new modulus 25 is not divisible by 10, the modulus of existing partition "hpart_1".
--- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
+-- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 150, REMAINDER 3);
 ERROR:  every hash partition modulus must be a factor of the next larger modulus
-DETAIL:  The new modulus 150 is not factor of 200, the modulus of existing partition "hpart_3".
+DETAIL:  The new modulus 150 is not factor of 200, the modulus of existing partition "hpart_3".
 -- trying to specify range for the hash partitioned table
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES FROM ('a', 1) TO ('z');
 ERROR:  invalid bound specification for a hash partition
index d257679ba68c1ec27b55fd71eb468d62f0633c49..54cbf6c0595f05ac62aa880f1d3eb58d5bfed3c4 100644 (file)
@@ -631,9 +631,9 @@ CREATE TABLE hash_parted (
 CREATE TABLE hpart_1 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 10, REMAINDER 0);
 CREATE TABLE hpart_2 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 50, REMAINDER 1);
 CREATE TABLE hpart_3 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 200, REMAINDER 2);
--- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
+-- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 25, REMAINDER 3);
--- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
+-- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 150, REMAINDER 3);
 -- trying to specify range for the hash partitioned table
 CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES FROM ('a', 1) TO ('z');