projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c69b33
)
Display WAL pointer in rm_redo error callback
author
Alvaro Herrera
Mon, 4 Apr 2016 21:12:12 +0000
(18:12 -0300)
committer
Alvaro Herrera
Mon, 4 Apr 2016 21:12:12 +0000
(18:12 -0300)
This makes it easier to identify the source of a recovery problem
in case of a bug or data corruption.
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 06cefe2efeb4df6c0a52ddc8659d956188ba12e3..00140ba8f40b4bf7213119e1181fdfe02dd2aed6 100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-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);
}