mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix error code for canceling statement due to conflict with recovery.
All retryable conflict errors now have an error code that indicates that a retry is possible, correcting my incomplete fix of 2010/05/12 Tatsuo Ishii and Simon Riggs, input from Robert Haas and Florian Pflug
This commit is contained in:
@ -494,7 +494,7 @@ CheckRecoveryConflictDeadlock(LWLockId partitionLock)
|
|||||||
* process will continue to wait even though we have avoided deadlock.
|
* process will continue to wait even though we have avoided deadlock.
|
||||||
*/
|
*/
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_QUERY_CANCELED),
|
(errcode(ERRCODE_T_R_DEADLOCK_DETECTED),
|
||||||
errmsg("canceling statement due to conflict with recovery"),
|
errmsg("canceling statement due to conflict with recovery"),
|
||||||
errdetail("User transaction caused buffer deadlock with recovery.")));
|
errdetail("User transaction caused buffer deadlock with recovery.")));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user