Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite76dd52

Browse files
committed
remove function add_range_partitions()
1 parent88f3130 commite76dd52

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-
CREATEOR REPLACE FUNCTION @extschema@.add_range_partitions(
848-
parent_relidREGCLASS,
849-
boundsANYARRAY,
850-
partition_namesTEXT[] DEFAULTNULL,
851-
tablespacesTEXT[] DEFAULTNULL)
852-
RETURNSINTEGERAS
853-
$$
854-
DECLARE
855-
part_countINTEGER;
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)

[8]ページ先頭

©2009-2025 Movatter.jp