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

Commita1580d5

Browse files
committed
on_partitions_removed fix
1 parentd2559df commita1580d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,8 @@ remove_relation_info(Oid relid)
488488
free_dsm_array(&rangerel->ranges);
489489
free_dsm_array(&prel->children);
490490
hash_search(range_restrictions, (constvoid*)&key,HASH_REMOVE,NULL);
491-
hash_search(relations, (constvoid*)&key,HASH_REMOVE,NULL);
492491
break;
493492
}
494493
prel->children_count=0;
495-
hash_search(relations, (constvoid*)&relid,HASH_REMOVE,0);
494+
hash_search(relations, (constvoid*)&key,HASH_REMOVE,0);
496495
}

‎init.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ CREATE OR REPLACE FUNCTION @extschema@.disable_partitioning(IN relation TEXT)
8282
RETURNS VOIDAS
8383
$$
8484
BEGIN
85+
relation := @extschema@.validate_relname(relation);
86+
8587
DELETEFROM @extschema@.pathman_configWHERE relname= relation;
8688
EXECUTE format('DROP FUNCTION IF EXISTS %s_insert_trigger_func() CASCADE', relation);
8789

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp