Skip to content

Commit 8585ad3

Browse files
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
1 parent 51be78b commit 8585ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/ipc/standby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ CheckRecoveryConflictDeadlock(LWLockId partitionLock)
494494
* process will continue to wait even though we have avoided deadlock.
495495
*/
496496
ereport(ERROR,
497-
(errcode(ERRCODE_QUERY_CANCELED),
497+
(errcode(ERRCODE_T_R_DEADLOCK_DETECTED),
498498
errmsg("canceling statement due to conflict with recovery"),
499499
errdetail("User transaction caused buffer deadlock with recovery.")));
500500
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy