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

Commit452d0c2

Browse files
Change errcode for lock_timeout to match NOWAIT
Set errcode to ERRCODE_LOCK_NOT_AVAILABLEZoltán Bsöszörményi
1 parent5e1ed63 commit452d0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@ ProcessInterrupts(void)
28952895
DisableNotifyInterrupt();
28962896
DisableCatchupInterrupt();
28972897
ereport(ERROR,
2898-
(errcode(ERRCODE_QUERY_CANCELED),
2898+
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
28992899
errmsg("canceling statement due to lock timeout")));
29002900
}
29012901
if (get_timeout_indicator(STATEMENT_TIMEOUT, true))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp