mirror of
https://github.com/postgres/postgres.git
synced 2026-06-11 01:30:11 -04: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
5e1ed63ac2
commit
452d0c2182
1 changed files with 1 additions and 1 deletions
|
|
@ -2895,7 +2895,7 @@ ProcessInterrupts(void)
|
|||
DisableNotifyInterrupt();
|
||||
DisableCatchupInterrupt();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_QUERY_CANCELED),
|
||||
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||
errmsg("canceling statement due to lock timeout")));
|
||||
}
|
||||
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))
|
||||
|
|
|
|||
Loading…
Reference in a new issue