8000 Change errcode for lock_timeout to match NOWAIT · ThomasReport/postgres@452d0c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 452d0c2

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 5e1ed63 commit 452d0c2

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
@@ -2895,7 +2895,7 @@ ProcessInterrupts(void)
28952895
DisableNotifyInterrupt();
28962896
DisableCatchupInterrupt();
28972897
ereport(ERROR,
2898-
(errcode(ERRCODE_QUERY_CANCELED),
2898+
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
28992899
errmsg("canceling statement due to lock timeout")));
29002900
}
29012901
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))

0 commit comments

Comments
 (0)
0