Skip to content

Commit 5992123

Browse files
committed
tests fixed
1 parent bba1535 commit 5992123

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

expected/pg_pathman.out

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,11 @@ SELECT pathman.add_range_partition('test.zero', 50, 70, 'test.zero_50');
11341134
(1 row)
11351135

11361136
SELECT pathman.append_range_partition('test.zero', 'test.zero_appended');
1137-
ERROR: Partition #-1 does not exist (total amount is 1)
1137+
append_range_partition
1138+
------------------------
1139+
test.zero_appended
1140+
(1 row)
1141+
11381142
SELECT pathman.prepend_range_partition('test.zero', 'test.zero_prepended');
11391143
prepend_range_partition
11401144
-------------------------
@@ -1148,7 +1152,7 @@ SELECT pathman.split_range_partition('test.zero_50', 60, 'test.zero_60');
11481152
(1 row)
11491153

11501154
DROP TABLE test.zero CASCADE;
1151-
NOTICE: drop cascades to 3 other objects
1155+
NOTICE: drop cascades to 4 other objects
11521156
/*
11531157
* Check that altering table columns doesn't break trigger
11541158
*/

sql/pg_pathman.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ SELECT pathman.enable_auto('test.range_rel');
531531
INSERT INTO test.range_rel (dt) VALUES ('2015-06-01');
532532

533533
DROP TABLE test.range_rel CASCADE;
534-
SELECT partrel, attname, parttype, range_interval FROM pathman.pathman_config;
534+
SELECT * FROM pathman.pathman_config;
535535

536536
/* Check overlaps */
537537
CREATE TABLE test.num_range_rel (
@@ -576,7 +576,7 @@ SELECT pathman.split_range_partition('test."RangeRel_1"', '2015-01-01'::DATE);
576576
SELECT pathman.drop_partitions('test."RangeRel"');
577577
SELECT pathman.create_partitions_from_range('test."RangeRel"', 'dt', '2015-01-01'::DATE, '2015-01-05'::DATE, '1 day'::INTERVAL);
578578
DROP TABLE test."RangeRel" CASCADE;
579-
SELECT partrel, attname, parttype, range_interval FROM pathman.pathman_config;
579+
SELECT * FROM pathman.pathman_config;
580580
CREATE TABLE test."RangeRel" (
581581
id SERIAL PRIMARY KEY,
582582
dt TIMESTAMP NOT NULL,

0 commit comments

Comments
 (0)