Fix incorrect format placeholders
This commit is contained in:
parent
0e164eb9f4
commit
58fbfde152
@ -7320,7 +7320,7 @@ buffer_readv_report(PgAioResult result, const PgAioTargetData *td,
|
|||||||
affected_count > 1 ?
|
affected_count > 1 ?
|
||||||
errdetail("Block %u held first zeroed page.",
|
errdetail("Block %u held first zeroed page.",
|
||||||
first + first_off) : 0,
|
first + first_off) : 0,
|
||||||
errhint("See server log for details about the other %u invalid block(s).",
|
errhint("See server log for details about the other %d invalid block(s).",
|
||||||
affected_count + checkfail_count - 1));
|
affected_count + checkfail_count - 1));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -629,7 +629,7 @@ InvalidateLocalBuffer(BufferDesc *bufHdr, bool check_unreferenced)
|
|||||||
*/
|
*/
|
||||||
if (check_unreferenced &&
|
if (check_unreferenced &&
|
||||||
(LocalRefCount[bufid] != 0 || BUF_STATE_GET_REFCOUNT(buf_state) != 0))
|
(LocalRefCount[bufid] != 0 || BUF_STATE_GET_REFCOUNT(buf_state) != 0))
|
||||||
elog(ERROR, "block %u of %s is still referenced (local %u)",
|
elog(ERROR, "block %u of %s is still referenced (local %d)",
|
||||||
bufHdr->tag.blockNum,
|
bufHdr->tag.blockNum,
|
||||||
relpathbackend(BufTagGetRelFileLocator(&bufHdr->tag),
|
relpathbackend(BufTagGetRelFileLocator(&bufHdr->tag),
|
||||||
MyProcNumber,
|
MyProcNumber,
|
||||||
|
@ -1510,7 +1510,7 @@ pg_stat_io_build_tuples(ReturnSetInfo *rsinfo,
|
|||||||
bktype_stats->bytes[io_obj][io_context][io_op];
|
bktype_stats->bytes[io_obj][io_context][io_op];
|
||||||
|
|
||||||
/* Convert to numeric */
|
/* Convert to numeric */
|
||||||
snprintf(buf, sizeof buf, UINT64_FORMAT, byte);
|
snprintf(buf, sizeof buf, INT64_FORMAT, byte);
|
||||||
values[byte_idx] = DirectFunctionCall3(numeric_in,
|
values[byte_idx] = DirectFunctionCall3(numeric_in,
|
||||||
CStringGetDatum(buf),
|
CStringGetDatum(buf),
|
||||||
ObjectIdGetDatum(0),
|
ObjectIdGetDatum(0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user