Skip to content

Commit e76dd52

Browse files
committed
remove function add_range_partitions()
1 parent 88f3130 commit e76dd52

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

range.sql

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -841,39 +841,6 @@ $$
841841
LANGUAGE plpgsql;
842842

843843

844-
/*
845-
* Add multiple partitions
846-
*/
847-
CREATE OR REPLACE FUNCTION @extschema@.add_range_partitions(
848-
parent_relid REGCLASS,
849-
bounds ANYARRAY,
850-
partition_names TEXT[] DEFAULT NULL,
851-
tablespaces TEXT[] DEFAULT NULL)
852-
RETURNS INTEGER AS
853-
$$
854-
DECLARE
855-
part_count INTEGER;
856-
BEGIN
857-
PERFORM @extschema@.validate_relname(parent_relid);
858-
859-
/* Acquire lock on parent */
860-
PERFORM @extschema@.lock_partitioned_relation(parent_relid);
861-
862-
/* Create partitions */
863-
part_count := @extschema@.create_range_partitions_internal(parent_relid,
864-
bounds,
865-
partition_names,
866-
tablespaces);
867-
868-
/* Notify backend about changes */
869-
PERFORM @extschema@.on_create_partitions(parent_relid);
870-
871-
RETURN part_count;
872-
END
873-
$$
874-
LANGUAGE plpgsql;
875-
876-
877844
/*
878845
* Drop range partition
879846
*/

0 commit comments

Comments
 (0)