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

Commitd4cf177

Browse files
committed
improve xact_bgw_conflicting_lock_exists() for locking groups
1 parent7986446 commitd4cf177

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/xact_handling.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ xact_unlock_rel_exclusive(Oid relid)
8282
bool
8383
xact_bgw_conflicting_lock_exists(Oidrelid)
8484
{
85+
#ifPG_VERSION_NUM >=90600
86+
/* We use locking groups for 9.6+ */
87+
return false;
88+
#else
8589
LOCKMODElockmode;
8690

8791
/* Try each lock >= ShareUpdateExclusiveLock */
@@ -94,6 +98,7 @@ xact_bgw_conflicting_lock_exists(Oid relid)
9498
}
9599

96100
return false;
101+
#endif
97102
}
98103

99104

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp