@@ -9,7 +9,7 @@ INSERT INTO test.hash_rel VALUES (1, 1);
9
9
INSERT INTO test.hash_rel VALUES (2, 2);
10
10
INSERT INTO test.hash_rel VALUES (3, 3);
11
11
SELECT 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
13
13
ALTER TABLE test.hash_rel ALTER COLUMN value SET NOT NULL;
14
14
SELECT pathman.create_hash_partitions('test.hash_rel', 'value', 3, partition_data:=false);
15
15
create_hash_partitions
@@ -130,10 +130,10 @@ CREATE INDEX ON test.range_rel (dt);
130
130
INSERT INTO test.range_rel (dt, txt)
131
131
SELECT g, md5(g::TEXT) FROM generate_series('2015-01-01', '2015-04-30', '1 day'::interval) as g;
132
132
SELECT 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
134
134
ALTER TABLE test.range_rel ALTER COLUMN dt SET NOT NULL;
135
135
SELECT 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'
137
137
SELECT pathman.create_range_partitions('test.range_rel', 'DT', '2015-01-01'::DATE, '1 month'::INTERVAL);
138
138
NOTICE: sequence "range_rel_seq" does not exist, skipping
139
139
create_range_partitions
@@ -1045,7 +1045,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
1045
1045
(3 rows)
1046
1046
1047
1047
SELECT 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
1049
1049
SELECT pathman.add_range_partition('test.range_rel', '2014-12-01'::DATE, '2015-01-01'::DATE);
1050
1050
add_range_partition
1051
1051
---------------------
@@ -1064,7 +1064,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
1064
1064
1065
1065
CREATE TABLE test.range_rel_archive (LIKE test.range_rel INCLUDING ALL);
1066
1066
SELECT 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
1068
1068
SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_archive', '2014-01-01'::DATE, '2014-12-01'::DATE);
1069
1069
attach_range_partition
1070
1070
------------------------
@@ -1103,12 +1103,12 @@ CREATE TABLE test.range_rel_test1 (
1103
1103
txt TEXT,
1104
1104
abc INTEGER);
1105
1105
SELECT 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
1107
1107
CREATE TABLE test.range_rel_test2 (
1108
1108
id SERIAL PRIMARY KEY,
1109
1109
dt TIMESTAMP);
1110
1110
SELECT 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
1112
1112
/*
1113
1113
* Zero partitions count and adding partitions with specified name
1114
1114
*/
@@ -1124,9 +1124,9 @@ NOTICE: sequence "zero_seq" does not exist, skipping
1124
1124
(1 row)
1125
1125
1126
1126
SELECT 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
1128
1128
SELECT 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
1130
1130
SELECT pathman.add_range_partition('test.zero', 50, 70, 'test.zero_50');
1131
1131
add_range_partition
1132
1132
---------------------
@@ -1689,8 +1689,8 @@ CREATE TABLE replies(id SERIAL PRIMARY KEY, message_id INTEGER REFERENCES messag
1689
1689
INSERT INTO messages SELECT g, md5(g::text) FROM generate_series(1, 10) as g;
1690
1690
INSERT INTO replies SELECT g, g, md5(g::text) FROM generate_series(1, 10) as g;
1691
1691
SELECT 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
1694
1694
ALTER TABLE replies DROP CONSTRAINT replies_message_id_fkey;
1695
1695
SELECT create_range_partitions('messages', 'id', 1, 100, 2);
1696
1696
NOTICE: sequence "messages_seq" does not exist, skipping