Change errcode for lock_timeout to match NOWAIT

Set errcode to ERRCODE_LOCK_NOT_AVAILABLE

Zoltán Bsöszörményi
pull/6/head
Simon Riggs 13 years ago
parent f177cbfe67
commit d51b271059
  1. 2
      src/backend/tcop/postgres.c

@ -2900,7 +2900,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…
Cancel
Save