mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix incorrect format placeholders
This commit is contained in:
@@ -10714,13 +10714,13 @@ xlog_block_info(StringInfo buf, XLogReaderState *record)
|
||||
|
||||
XLogRecGetBlockTag(record, block_id, &rnode, &forknum, &blk);
|
||||
if (forknum != MAIN_FORKNUM)
|
||||
appendStringInfo(buf, "; blkref #%u: rel %u/%u/%u, fork %u, blk %u",
|
||||
appendStringInfo(buf, "; blkref #%d: rel %u/%u/%u, fork %u, blk %u",
|
||||
block_id,
|
||||
rnode.spcNode, rnode.dbNode, rnode.relNode,
|
||||
forknum,
|
||||
blk);
|
||||
else
|
||||
appendStringInfo(buf, "; blkref #%u: rel %u/%u/%u, blk %u",
|
||||
appendStringInfo(buf, "; blkref #%d: rel %u/%u/%u, blk %u",
|
||||
block_id,
|
||||
rnode.spcNode, rnode.dbNode, rnode.relNode,
|
||||
blk);
|
||||
|
||||
@@ -985,14 +985,14 @@ WALReadRaiseError(WALReadError *errinfo)
|
||||
errno = errinfo->wre_errno;
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not read from log segment %s, offset %u: %m",
|
||||
errmsg("could not read from log segment %s, offset %d: %m",
|
||||
fname, errinfo->wre_off)));
|
||||
}
|
||||
else if (errinfo->wre_read == 0)
|
||||
{
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||
errmsg("could not read from log segment %s, offset %u: read %d of %d",
|
||||
errmsg("could not read from log segment %s, offset %d: read %d of %d",
|
||||
fname, errinfo->wre_off, errinfo->wre_read,
|
||||
errinfo->wre_req)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user