Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8585ad3

Browse files
Fix error code for canceling statement due to conflict with recovery.
All retryable conflict errors now have an error code that indicates thata retry is possible, correcting my incomplete fix of 2010/05/12Tatsuo Ishii and Simon Riggs, input from Robert Haas and Florian Pflug
1 parent51be78b commit8585ad3

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)

[8]ページ先頭

©2009-2025 Movatter.jp