Skip to content

Instantly share code, notes, and snippets.

@danielgustafsson
Created June 21, 2016 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgustafsson/323ebb04535c344d1c8814063a083a26 to your computer and use it in GitHub Desktop.
Save danielgustafsson/323ebb04535c344d1c8814063a083a26 to your computer and use it in GitHub Desktop.
diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c
index dcf747c..6627f40 100644
--- a/src/backend/access/transam/xlogreader.c
+++ b/src/backend/access/transam/xlogreader.c
@@ -337,7 +337,8 @@ XLogReadRecord(XLogReaderState *state, XLogRecPtr RecPtr, char **errormsg)
!allocate_recordbuf(state, total_len))
{
/* We treat this as a "bogus data" condition */
- report_invalid_record(state, "record length %u at %X/%X too long",
+ report_invalid_record(state,
+ "record length %u at %X/%X too long, allocation failed",
total_len,
(uint32) (RecPtr >> 32), (uint32) RecPtr);
goto err;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment