11\set VERBOSITY terse
2+ CREATE SCHEMA pathman;
3+ CREATE EXTENSION pathman SCHEMA pathman;
24CREATE SCHEMA test;
3- CREATE EXTENSION pathman;
45CREATE TABLE test.hash_rel (
56 id SERIAL PRIMARY KEY,
67 value INTEGER);
7- SELECT create_hash_partitions('test.hash_rel', 'value', 3);
8+ SELECTpathman. create_hash_partitions('test.hash_rel', 'value', 3);
89NOTICE: trigger "test_hash_rel_insert_trigger" for relation "test.hash_rel" does not exist, skipping
910NOTICE: function test.hash_rel_hash_insert_trigger_func() does not exist, skipping
1011 create_hash_partitions
@@ -16,7 +17,7 @@ CREATE TABLE test.range_rel (
1617 id SERIAL PRIMARY KEY,
1718 dt TIMESTAMP,
1819 txt TEXT);
19- SELECT create_range_partitions('test.range_rel', 'dt', '2015-01-01'::DATE, '1 month'::INTERVAL, 3);
20+ SELECTpathman. create_range_partitions('test.range_rel', 'dt', '2015-01-01'::DATE, '1 month'::INTERVAL, 3);
2021NOTICE: sequence "range_rel_seq" does not exist, skipping
2122 create_range_partitions
2223-------------------------
@@ -26,7 +27,7 @@ NOTICE: sequence "range_rel_seq" does not exist, skipping
2627CREATE TABLE test.num_range_rel (
2728 id SERIAL PRIMARY KEY,
2829 txt TEXT);
29- SELECT create_range_partitions('test.num_range_rel', 'id', 0, 1000, 3);
30+ SELECTpathman. create_range_partitions('test.num_range_rel', 'id', 0, 1000, 3);
3031NOTICE: sequence "num_range_rel_seq" does not exist, skipping
3132 create_range_partitions
3233-------------------------
@@ -185,7 +186,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.num_range_rel WHERE (id >= 500 AND id < 1
185186 * Test split and merge
186187 */
187188/* Split first partition in half */
188- SELECT split_range_partition('test.num_range_rel_1', 500);
189+ SELECTpathman. split_range_partition('test.num_range_rel_1', 500);
189190NOTICE: Creating new partition...
190191NOTICE: Copying data to new partition...
191192NOTICE: Altering original partition...
@@ -205,7 +206,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.num_range_rel WHERE id BETWEEN 100 AND 70
205206 Index Cond: (id <= 700)
206207(5 rows)
207208
208- SELECT split_range_partition('test.range_rel_1', '2015-01-15'::DATE);
209+ SELECTpathman. split_range_partition('test.range_rel_1', '2015-01-15'::DATE);
209210NOTICE: Creating new partition...
210211NOTICE: Copying data to new partition...
211212NOTICE: Altering original partition...
@@ -216,7 +217,7 @@ NOTICE: Done!
216217(1 row)
217218
218219/* Merge two partitions into one */
219- SELECT merge_range_partitions('test.num_range_rel_1', 'test.num_range_rel_' || currval('test.num_range_rel_seq'));
220+ SELECTpathman. merge_range_partitions('test.num_range_rel_1', 'test.num_range_rel_' || currval('test.num_range_rel_seq'));
220221NOTICE: Altering first partition...
221222NOTICE: Copying data...
222223NOTICE: Dropping second partition...
@@ -234,7 +235,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.num_range_rel WHERE id BETWEEN 100 AND 70
234235 Index Cond: ((id >= 100) AND (id <= 700))
235236(3 rows)
236237
237- SELECT merge_range_partitions('test.range_rel_1', 'test.range_rel_' || currval('test.range_rel_seq'));
238+ SELECTpathman. merge_range_partitions('test.range_rel_1', 'test.range_rel_' || currval('test.range_rel_seq'));
238239NOTICE: Altering first partition...
239240NOTICE: Copying data...
240241NOTICE: Dropping second partition...
@@ -245,31 +246,31 @@ NOTICE: Done!
245246(1 row)
246247
247248/* Append and prepend partitions */
248- SELECT append_partition('test.num_range_rel');
249+ SELECTpathman. append_partition('test.num_range_rel');
249250NOTICE: Appending new partition...
250251NOTICE: Done!
251252 append_partition
252253------------------
253254
254255(1 row)
255256
256- SELECT prepend_partition('test.num_range_rel');
257+ SELECTpathman. prepend_partition('test.num_range_rel');
257258NOTICE: Prepending new partition...
258259NOTICE: Done!
259260 prepend_partition
260261-------------------
261262
262263(1 row)
263264
264- SELECT append_partition('test.range_rel');
265+ SELECTpathman. append_partition('test.range_rel');
265266NOTICE: Appending new partition...
266267NOTICE: Done!
267268 append_partition
268269------------------
269270
270271(1 row)
271272
272- SELECT prepend_partition('test.range_rel');
273+ SELECTpathman. prepend_partition('test.range_rel');
273274NOTICE: Prepending new partition...
274275NOTICE: Done!
275276 prepend_partition
@@ -280,20 +281,19 @@ NOTICE: Done!
280281/*
281282 * Clean up
282283 */
283- SELECT drop_hash_partitions('test.hash_rel');
284+ SELECTpathman. drop_hash_partitions('test.hash_rel');
284285 drop_hash_partitions
285286----------------------
286287
287288(1 row)
288289
289290DROP TABLE test.hash_rel CASCADE;
290291NOTICE: drop cascades to 3 other objects
291- SELECT drop_range_partitions('test.num_range_rel');
292+ SELECTpathman. drop_range_partitions('test.num_range_rel');
292293 drop_range_partitions
293294-----------------------
294295
295296(1 row)
296297
297298DROP TABLE test.num_range_rel CASCADE;
298- NOTICE: drop cascades to 6 other objects
299299DROP EXTENSION pathman;