@@ -380,24 +380,6 @@ SELECT create_range_partitions('subpartitions.abc_4', 'a', ARRAY[300, 350, 450])
380
380
2
381
381
(1 row)
382
382
383
- \d+ subpartitions.abc_1
384
- Table "subpartitions.abc_1"
385
- Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
386
- --------+---------+-----------+----------+---------+---------+--------------+-------------
387
- a | integer | | not null | | plain | |
388
- Check constraints:
389
- "pathman_abc_1_check" CHECK (a >= 0 AND a < 100)
390
- Inherits: subpartitions.abc
391
- Child tables: subpartitions.abc_1_1,
392
- subpartitions.abc_1_2,
393
- subpartitions.abc_1_3,
394
- subpartitions.abc_1_4,
395
- subpartitions.abc_1_5,
396
- subpartitions.abc_1_6,
397
- subpartitions.abc_1_7,
398
- subpartitions.abc_1_8,
399
- subpartitions.abc_1_9
400
-
401
383
SELECT * FROM pathman_partition_list;
402
384
parent | partition | parttype | expr | range_min | range_max
403
385
---------------------+------------------------+----------+------+-----------+-----------
@@ -464,14 +446,14 @@ DROP TABLE subpartitions.abc CASCADE;
464
446
NOTICE: drop cascades to 39 other objects
465
447
/* subpartitions on same expression but dates */
466
448
CREATE TABLE subpartitions.abc(a DATE NOT NULL);
467
- INSERT INTO subpartitions.abc SELECT current_date + i FROM generate_series(1, 200, 20) as i;
468
- SELECT create_range_partitions('subpartitions.abc', 'a', current_date , '1 month'::INTERVAL);
449
+ INSERT INTO subpartitions.abc SELECT '2017-10-02'::DATE + i FROM generate_series(1, 200, 20) as i;
450
+ SELECT create_range_partitions('subpartitions.abc', 'a', '2017-10-02'::DATE , '1 month'::INTERVAL);
469
451
create_range_partitions
470
452
-------------------------
471
453
6
472
454
(1 row)
473
455
474
- SELECT create_range_partitions('subpartitions.abc_1', 'a', current_date + 1,
456
+ SELECT create_range_partitions('subpartitions.abc_1', 'a', '2017-10-02'::DATE + 1,
475
457
'32 day'::INTERVAL, 10); /* not multiple, and limited p_count */
476
458
WARNING: "start_value" was set to 10-02-2017
477
459
WARNING: "p_interval" is not multiple of range (10-02-2017, 11-03-2017)
0 commit comments