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

Commit603f0fc

Browse files
committed
fix locking in merge_range_partitions_internal()
1 parent1a88243 commit603f0fc

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
intj;
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)

[8]ページ先頭

©2009-2025 Movatter.jp