index 2f9fe8ab8eb46a04871cde9e0fffee770938f211..8ddfa60b388ae8ee6592cb854138896545034f0e 100644 (file)
@@ -494,7 +494,7 @@ CheckRecoveryConflictDeadlock(LWLockId partitionLock)
* process will continue to wait even though we have avoided deadlock.
*/
ereport(ERROR,
- (errcode(ERRCODE_QUERY_CANCELED),
+ (errcode(ERRCODE_T_R_DEADLOCK_DETECTED),
errmsg("canceling statement due to conflict with recovery"),
errdetail("User transaction caused buffer deadlock with recovery.")));
}