Skip to content

Commit d51b271

Browse files
Change errcode for lock_timeout to match NOWAIT
Set errcode to ERRCODE_LOCK_NOT_AVAILABLE Zoltán Bsöszörményi
1 parent f177cbf commit d51b271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/tcop/postgres.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2900,7 +2900,7 @@ ProcessInterrupts(void)
29002900
DisableNotifyInterrupt();
29012901
DisableCatchupInterrupt();
29022902
ereport(ERROR,
2903-
(errcode(ERRCODE_QUERY_CANCELED),
2903+
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
29042904
errmsg("canceling statement due to lock timeout")));
29052905
}
29062906
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))

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