mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 23:21:50 +02:00
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.
This commit is contained in:
parent
3c69b33f45
commit
890614d2b3
@ -10847,7 +10847,11 @@ rm_redo_error_callback(void *arg)
|
|||||||
initStringInfo(&buf);
|
initStringInfo(&buf);
|
||||||
xlog_outdesc(&buf, record);
|
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);
|
pfree(buf.data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user