Skip to content

Commit d4cf177

Browse files
committed
improve xact_bgw_conflicting_lock_exists() for locking groups
1 parent 7986446 commit d4cf177

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(Oid relid)
8484
{
85+
#if PG_VERSION_NUM >= 90600
86+
/* We use locking groups for 9.6+ */
87+
return false;
88+
#else
8589
LOCKMODE lockmode;
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy