Commit 890614d2 authored by Alvaro Herrera's avatar Alvaro Herrera

Display WAL pointer in rm_redo error callback

This makes it easier to identify the source of a recovery problem
in case of a bug or data corruption.
parent 3c69b33f
......@@ -10847,7 +10847,11 @@ rm_redo_error_callback(void *arg)
initStringInfo(&buf);
xlog_outdesc(&buf, record);
errcontext("xlog redo %s", buf.data);
/* translator: %s is an XLog record description */
errcontext("xlog redo at %X/%X for %s",
(uint32) (record->ReadRecPtr >> 32),
(uint32) record->ReadRecPtr,
buf.data);
pfree(buf.data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment