Skip to content

Commit 1cd5a12

Browse files
committed
[WIP] refactoring for the 'partition_creation' subsystem
1 parent 687e6ca commit 1cd5a12

File tree

4 files changed

+213
-115
lines changed

4 files changed

+213
-115
lines changed

expected/pathman_basic.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,13 +1270,13 @@ SELECT split_range_partition('range_rel_1', '2010-02-15'::date);
12701270
SELECT append_range_partition('range_rel');
12711271
append_range_partition
12721272
------------------------
1273-
public.range_rel_14
1273+
range_rel_14
12741274
(1 row)
12751275

12761276
SELECT prepend_range_partition('range_rel');
12771277
prepend_range_partition
12781278
-------------------------
1279-
public.range_rel_15
1279+
range_rel_15
12801280
(1 row)
12811281

12821282
EXPLAIN (COSTS OFF) SELECT * FROM range_rel WHERE dt < '2010-03-01';

range.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ CREATE OR REPLACE FUNCTION @extschema@.create_single_range_partition(
460460
end_value ANYELEMENT,
461461
partition_name TEXT DEFAULT NULL,
462462
tablespace TEXT DEFAULT NULL)
463-
RETURNS TEXT AS
463+
RETURNS REGCLASS AS
464464
$$
465465
DECLARE
466466
v_part_num INT;
@@ -541,7 +541,7 @@ BEGIN
541541
start_value,
542542
end_value);
543543

544-
RETURN v_child_relname;
544+
RETURN v_child_relname::REGCLASS;
545545
END
546546
$$ LANGUAGE plpgsql
547547
SET client_min_messages = WARNING;

0 commit comments

Comments
 (0)