@@ -1180,7 +1180,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
1180
1180
(3 rows)
1181
1181
1182
1182
SELECT pathman.add_range_partition('test.range_rel', '2014-12-01'::DATE, '2015-01-02'::DATE);
1183
- ERROR: specified range overlaps with existing partitions
1183
+ ERROR: specified range [12-01-2014, 01-02-2015) overlaps with existing partitions
1184
1184
SELECT pathman.add_range_partition('test.range_rel', '2014-12-01'::DATE, '2015-01-01'::DATE);
1185
1185
add_range_partition
1186
1186
---------------------
@@ -1199,7 +1199,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.range_rel WHERE dt BETWEEN '2014-12-15' A
1199
1199
1200
1200
CREATE TABLE test.range_rel_archive (LIKE test.range_rel INCLUDING ALL);
1201
1201
SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_archive', '2014-01-01'::DATE, '2015-01-01'::DATE);
1202
- ERROR: specified range overlaps with existing partitions
1202
+ ERROR: specified range [01-01-2014, 01-01-2015) overlaps with existing partitions
1203
1203
SELECT pathman.attach_range_partition('test.range_rel', 'test.range_rel_archive', '2014-01-01'::DATE, '2014-12-01'::DATE);
1204
1204
attach_range_partition
1205
1205
------------------------
@@ -1427,48 +1427,28 @@ SELECT pathman.create_range_partitions('test.num_range_rel', 'id', 1000, 1000, 4
1427
1427
4
1428
1428
(1 row)
1429
1429
1430
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 4001, 5000);
1431
- check_overlap
1432
- ---------------
1433
- t
1434
- (1 row)
1435
-
1436
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 4000, 5000);
1437
- check_overlap
1438
- ---------------
1439
- t
1440
- (1 row)
1441
-
1442
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 3999, 5000);
1443
- check_overlap
1444
- ---------------
1445
- t
1446
- (1 row)
1447
-
1448
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 3000, 3500);
1449
- check_overlap
1450
- ---------------
1451
- t
1452
- (1 row)
1453
-
1454
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 0, 999);
1455
- check_overlap
1456
- ---------------
1457
- f
1458
- (1 row)
1459
-
1460
- SELECT pathman.check_overlap('test.num_range_rel'::regclass::oid, 0, 1000);
1461
- check_overlap
1462
- ---------------
1463
- f
1430
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 4001, 5000);
1431
+ ERROR: specified range [4001, 5000) overlaps with existing partitions
1432
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 4000, 5000);
1433
+ ERROR: specified range [4000, 5000) overlaps with existing partitions
1434
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 3999, 5000);
1435
+ ERROR: specified range [3999, 5000) overlaps with existing partitions
1436
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 3000, 3500);
1437
+ ERROR: specified range [3000, 3500) overlaps with existing partitions
1438
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 0, 999);
1439
+ check_range_available
1440
+ -----------------------
1441
+
1464
1442
(1 row)
1465
1443
1466
- SELECT pathman.check_overlap ('test.num_range_rel'::regclass::oid , 0, 1001 );
1467
- check_overlap
1468
- ---------------
1469
- t
1444
+ SELECT pathman.check_range_available ('test.num_range_rel'::regclass, 0, 1000 );
1445
+ check_range_available
1446
+ -----------------------
1447
+
1470
1448
(1 row)
1471
1449
1450
+ SELECT pathman.check_range_available('test.num_range_rel'::regclass, 0, 1001);
1451
+ ERROR: specified range [0, 1001) overlaps with existing partitions
1472
1452
/* CaMeL cAsE table names and attributes */
1473
1453
CREATE TABLE test."TeSt" (a INT NOT NULL, b INT);
1474
1454
SELECT pathman.create_hash_partitions('test.TeSt', 'a', 3);
@@ -1950,31 +1930,31 @@ NOTICE: sequence "index_on_childs_seq" does not exist, skipping
1950
1930
SELECT add_range_partition('test.index_on_childs', 1, 1000, 'test.index_on_childs_1_1K');
1951
1931
add_range_partition
1952
1932
---------------------------
1953
- test.index_on_childs_1_1K
1933
+ test.index_on_childs_1_1k
1954
1934
(1 row)
1955
1935
1956
1936
SELECT append_range_partition('test.index_on_childs', 'test.index_on_childs_1K_2K');
1957
1937
append_range_partition
1958
1938
----------------------------
1959
- test.index_on_childs_1K_2K
1939
+ test.index_on_childs_1k_2k
1960
1940
(1 row)
1961
1941
1962
1942
SELECT append_range_partition('test.index_on_childs', 'test.index_on_childs_2K_3K');
1963
1943
append_range_partition
1964
1944
----------------------------
1965
- test.index_on_childs_2K_3K
1945
+ test.index_on_childs_2k_3k
1966
1946
(1 row)
1967
1947
1968
1948
SELECT append_range_partition('test.index_on_childs', 'test.index_on_childs_3K_4K');
1969
1949
append_range_partition
1970
1950
----------------------------
1971
- test.index_on_childs_3K_4K
1951
+ test.index_on_childs_3k_4k
1972
1952
(1 row)
1973
1953
1974
1954
SELECT append_range_partition('test.index_on_childs', 'test.index_on_childs_4K_5K');
1975
1955
append_range_partition
1976
1956
----------------------------
1977
- test.index_on_childs_4K_5K
1957
+ test.index_on_childs_4k_5k
1978
1958
(1 row)
1979
1959
1980
1960
SELECT set_enable_parent('test.index_on_childs', true);
0 commit comments