mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Change errcode for lock_timeout to match NOWAIT
Set errcode to ERRCODE_LOCK_NOT_AVAILABLE Zoltán Bsöszörményi
This commit is contained in:
parent
f177cbfe67
commit
d51b271059
@ -2900,7 +2900,7 @@ ProcessInterrupts(void)
|
|||||||
DisableNotifyInterrupt();
|
DisableNotifyInterrupt();
|
||||||
DisableCatchupInterrupt();
|
DisableCatchupInterrupt();
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_QUERY_CANCELED),
|
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||||
errmsg("canceling statement due to lock timeout")));
|
errmsg("canceling statement due to lock timeout")));
|
||||||
}
|
}
|
||||||
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))
|
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))
|
||||||
|
Loading…
Reference in New Issue
Block a user