File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 841841LANGUAGE 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 */
You can’t perform that action at this time.
0 commit comments