@@ -9,7 +9,7 @@ INSERT INTO test.hash_rel VALUES (1, 1);
99INSERT INTO test.hash_rel VALUES (2, 2);
1010INSERT INTO test.hash_rel VALUES (3, 3);
1111SELECT pathman.create_hash_partitions('test.hash_rel', 'value', 3);
12- ERROR: Partitioning key 'value' must be NOT NULL
12+ ERROR: partitioning key 'value' must be NOT NULL
1313ALTER TABLE test.hash_rel ALTER COLUMN value SET NOT NULL;
1414SELECT pathman.create_hash_partitions('test.hash_rel', 'value', 3, partition_data:=false);
1515 create_hash_partitions
@@ -130,10 +130,10 @@ CREATE INDEX ON test.range_rel (dt);
130130INSERT INTO test.range_rel (dt, txt)
131131SELECT g, md5(g::TEXT) FROM generate_series('2015-01-01', '2015-04-30', '1 day'::interval) as g;
132132SELECT pathman.create_range_partitions('test.range_rel', 'dt', '2015-01-01'::DATE, '1 month'::INTERVAL, 2);
133- ERROR: Partitioning key 'dt' must be NOT NULL
133+ ERROR: partitioning key 'dt' must be NOT NULL
134134ALTER TABLE test.range_rel ALTER COLUMN dt SET NOT NULL;
135135SELECT pathman.create_range_partitions('test.range_rel', 'dt', '2015-01-01'::DATE, '1 month'::INTERVAL, 2);
136- ERROR: Not enough partitions to fit all values of 'dt'
136+ ERROR: not enough partitions to fit all values of 'dt'
137137SELECT pathman.create_range_partitions('test.range_rel', 'DT', '2015-01-01'::DATE, '1 month'::INTERVAL);
138138NOTICE: sequence "range_rel_seq" does not exist, skipping
139139 create_range_partitions
@@ -1045,7 +1045,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
10451045(3 rows)
10461046
10471047SELECT pathman.add_range_partition('test.range_rel', '2014-12-01'::DATE, '2015-01-02'::DATE);
1048- ERROR: Specified range overlaps with existing partitions
1048+ ERROR: specified range overlaps with existing partitions
10491049SELECT pathman.add_range_partition('test.range_rel', '2014-12-01'::DATE, '2015-01-01'::DATE);
10501050 add_range_partition
10511051---------------------
@@ -1064,7 +1064,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
10641064
10651065CREATE TABLE test.range_rel_archive (LIKE test.range_rel INCLUDING ALL);
10661066SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_archive', '2014-01-01'::DATE, '2015-01-01'::DATE);
1067- ERROR: Specified range overlaps with existing partitions
1067+ ERROR: specified range overlaps with existing partitions
10681068SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_archive', '2014-01-01'::DATE, '2014-12-01'::DATE);
10691069 attach_range_partition
10701070------------------------
@@ -1103,12 +1103,12 @@ CREATE TABLE test.range_rel_test1 (
11031103 txt TEXT,
11041104 abc INTEGER);
11051105SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_test1', '2013-01-01'::DATE, '2014-01-01'::DATE);
1106- ERROR: Partition must have the exact same structure as parent
1106+ ERROR: partition must have the exact same structure as parent
11071107CREATE TABLE test.range_rel_test2 (
11081108 id SERIAL PRIMARY KEY,
11091109 dt TIMESTAMP);
11101110SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_test2', '2013-01-01'::DATE, '2014-01-01'::DATE);
1111- ERROR: Partition must have the exact same structure as parent
1111+ ERROR: partition must have the exact same structure as parent
11121112/*
11131113 * Zero partitions count and adding partitions with specified name
11141114 */
@@ -1124,9 +1124,9 @@ NOTICE: sequence "zero_seq" does not exist, skipping
11241124(1 row)
11251125
11261126SELECT pathman.append_range_partition('test.zero', 'test.zero_0');
1127- ERROR: Cannot append to empty partitions set
1127+ ERROR: cannot append to empty partitions set
11281128SELECT pathman.prepend_range_partition('test.zero', 'test.zero_1');
1129- ERROR: Cannot prepend to empty partitions set
1129+ ERROR: cannot prepend to empty partitions set
11301130SELECT pathman.add_range_partition('test.zero', 50, 70, 'test.zero_50');
11311131 add_range_partition
11321132---------------------
@@ -1689,8 +1689,8 @@ CREATE TABLE replies(id SERIAL PRIMARY KEY, message_id INTEGER REFERENCES messag
16891689INSERT INTO messages SELECT g, md5(g::text) FROM generate_series(1, 10) as g;
16901690INSERT INTO replies SELECT g, g, md5(g::text) FROM generate_series(1, 10) as g;
16911691SELECT create_range_partitions('messages', 'id', 1, 100, 2);
1692- WARNING: Foreign key 'replies_message_id_fkey' references to the relation 'messages'
1693- ERROR: Relation "messages" is referenced from other relations
1692+ WARNING: foreign key 'replies_message_id_fkey' references relation 'messages'
1693+ ERROR: relation "messages" is referenced from other relations
16941694ALTER TABLE replies DROP CONSTRAINT replies_message_id_fkey;
16951695SELECT create_range_partitions('messages', 'id', 1, 100, 2);
16961696NOTICE: sequence "messages_seq" does not exist, skipping
0 commit comments