Skip to content

Commit 890614d

Browse files
committed
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.
1 parent 3c69b33 commit 890614d

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy