Skip to content

Commit 4901820

Browse files
committed
detach_range_partition(): lock parent in access exclusive mode (needed for refresh_pathman_relation_info())
1 parent 4bbab4c commit 4901820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

range.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ BEGIN
10871087
parent_relid := @extschema@.get_parent_of_partition(partition);
10881088

10891089
/* Acquire lock on parent */
1090-
PERFORM @extschema@.lock_partitioned_relation(parent_relid);
1090+
PERFORM @extschema@.prevent_relation_modification(parent_relid);
10911091

10921092
v_attname := attname
10931093
FROM @extschema@.pathman_config

0 commit comments

Comments
 (0)