From d51b271059ba736f71c5372f713d907f711208ec Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Sat, 29 Jun 2013 00:57:25 +0100 Subject: [PATCH] Change errcode for lock_timeout to match NOWAIT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Set errcode to ERRCODE_LOCK_NOT_AVAILABLE Zoltán Bsöszörményi --- src/backend/tcop/postgres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index ad258b74fd..c0667b24e1 100644 --- a/src/backend/tcop/postgres.c +++ b/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)) -- 2.40.0