Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 603f0fc

Browse files
committed
fix locking in merge_range_partitions_internal()
1 parent 1a88243 commit 603f0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl_range_funcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ merge_range_partitions_internal(Oid parent, Oid *parts, uint32 nparts)
698698
int j;
699699

700700
/* Prevent modification of partitions */
701-
LockRelationOid(parts[0], AccessExclusiveLock);
701+
LockRelationOid(parts[i], AccessExclusiveLock);
702702

703703
/* Look for the specified partition */
704704
for (j = 0; j < PrelChildrenCount(prel); j++)

0 commit comments

Comments
 (0)