提交 1ab08748 编写于 作者: S Shoaib Lari

fix_malloc_errmsg: Fix error message for record length too long.

Make the error message more descriptive when cannot enlarge readRecordBuf.
上级 fdb606b3
...@@ -4284,10 +4284,9 @@ retry: ...@@ -4284,10 +4284,9 @@ retry:
if (!readRecordBuf) if (!readRecordBuf)
{ {
readRecordBufSize = 0; readRecordBufSize = 0;
/* We treat this as a "bogus data" condition */
ereport(emode, ereport(emode,
(errmsg("record length %u at %X/%X too long", (errmsg("cannot allocate %u bytes for record at %X/%X",
total_len, RecPtr->xlogid, RecPtr->xrecoff))); newSize, RecPtr->xlogid, RecPtr->xrecoff)));
goto next_record_is_invalid; goto next_record_is_invalid;
} }
readRecordBufSize = newSize; readRecordBufSize = newSize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册