Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9f989a8

Browse files
committed
Fix typo
1 parent 4e8c0f1 commit 9f989a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/backend/partitioning/partbounds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ check_new_partition_bound(char *relname, Relation parent,
28992899
ereport(ERROR,
29002900
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
29012901
errmsg("every hash partition modulus must be a factor of the next larger modulus"),
2902-
errdetail("The new modulus %d is not factor of %d, the modulus of existing partition \"%s\".",
2902+
errdetail("The new modulus %d is not a factor of %d, the modulus of existing partition \"%s\".",
29032903
spec->modulus, next_modulus,
29042904
get_rel_name(partdesc->oids[boundinfo->indexes[offset + 1]]))));
29052905
}

src/test/regress/expected/create_table.out

+3-3
Original file line numberDiff line numberDiff line change
@@ -780,14 +780,14 @@ CREATE TABLE hash_parted (
780780
CREATE TABLE hpart_1 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 10, REMAINDER 0);
781781
CREATE TABLE hpart_2 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 50, REMAINDER 1);
782782
CREATE TABLE hpart_3 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 200, REMAINDER 2);
783-
-- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
783+
-- modulus 25 is factor of modulus of 50 but 10 is not a factor of 25.
784784
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 25, REMAINDER 3);
785785
ERROR: every hash partition modulus must be a factor of the next larger modulus
786786
DETAIL: The new modulus 25 is not divisible by 10, the modulus of existing partition "hpart_1".
787-
-- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
787+
-- previous modulus 50 is factor of 150 but this modulus is not a factor of next modulus 200.
788788
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 150, REMAINDER 3);
789789
ERROR: every hash partition modulus must be a factor of the next larger modulus
790-
DETAIL: The new modulus 150 is not factor of 200, the modulus of existing partition "hpart_3".
790+
DETAIL: The new modulus 150 is not a factor of 200, the modulus of existing partition "hpart_3".
791791
-- trying to specify range for the hash partitioned table
792792
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES FROM ('a', 1) TO ('z');
793793
ERROR: invalid bound specification for a hash partition

src/test/regress/sql/create_table.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,9 @@ CREATE TABLE hash_parted (
631631
CREATE TABLE hpart_1 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 10, REMAINDER 0);
632632
CREATE TABLE hpart_2 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 50, REMAINDER 1);
633633
CREATE TABLE hpart_3 PARTITION OF hash_parted FOR VALUES WITH (MODULUS 200, REMAINDER 2);
634-
-- modulus 25 is factor of modulus of 50 but 10 is not factor of 25.
634+
-- modulus 25 is factor of modulus of 50 but 10 is not a factor of 25.
635635
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 25, REMAINDER 3);
636-
-- previous modulus 50 is factor of 150 but this modulus is not factor of next modulus 200.
636+
-- previous modulus 50 is factor of 150 but this modulus is not a factor of next modulus 200.
637637
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES WITH (MODULUS 150, REMAINDER 3);
638638
-- trying to specify range for the hash partitioned table
639639
CREATE TABLE fail_part PARTITION OF hash_parted FOR VALUES FROM ('a', 1) TO ('z');

0 commit comments

Comments
 (0)