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

Commit890614d

Browse files
committed
Display WAL pointer in rm_redo error callback
This makes it easier to identify the source of a recovery problemin case of a bug or data corruption.
1 parent3c69b33 commit890614d

File tree

1 file changed

+5
-1
lines changed
  • src/backend/access/transam

1 file changed

+5
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10847,7 +10847,11 @@ rm_redo_error_callback(void *arg)
1084710847
initStringInfo(&buf);
1084810848
xlog_outdesc(&buf,record);
1084910849

10850-
errcontext("xlog redo %s",buf.data);
10850+
/* translator: %s is an XLog record description */
10851+
errcontext("xlog redo at %X/%X for %s",
10852+
(uint32) (record->ReadRecPtr >>32),
10853+
(uint32)record->ReadRecPtr,
10854+
buf.data);
1085110855

1085210856
pfree(buf.data);
1085310857
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp