diff options
| author | Simon Riggs | 2013-06-28 23:57:25 +0000 |
|---|---|---|
| committer | Simon Riggs | 2013-06-28 23:59:20 +0000 |
| commit | 452d0c21825dd52c10af4538d850991bf6a00e38 (patch) | |
| tree | 93b6154606bf4d24309438a5d49facf83c4e590b | |
| parent | 5e1ed63ac2ccb3d8e605ce2e428816c8487fe683 (diff) | |
Change errcode for lock_timeout to match NOWAIT
Set errcode to ERRCODE_LOCK_NOT_AVAILABLE
Zoltán Bsöszörményi
| -rw-r--r-- | src/backend/tcop/postgres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 31ea31304b4..ba895d5854a 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -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)) |
