ereport(ERROR,
(errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("not enough shared memory for data structure"
- " \"%s\" (%zu bytes requested)",
+ " \"%s\" (%zd bytes requested)",
name, request->options->size)));
}
index_entry->size = request->options->size;
{
ereport(ERROR,
(errmsg("shared memory struct \"%s\" was created with"
- " different size: existing %zu, requested %zu",
+ " different size: existing %zu, requested %zd",
name, index_entry->size, request->options->size)));
}
if (!IsValidWalSegSize(longhdr->xlp_seg_size))
{
- pg_log_error(ngettext("invalid WAL segment size in WAL file from archive \"%s\" (%d byte)",
- "invalid WAL segment size in WAL file from archive \"%s\" (%d bytes)",
+ pg_log_error(ngettext("invalid WAL segment size in WAL file from archive \"%s\" (%u byte)",
+ "invalid WAL segment size in WAL file from archive \"%s\" (%u bytes)",
longhdr->xlp_seg_size),
privateInfo->archive_name, longhdr->xlp_seg_size);
pg_log_error_detail("The WAL segment size must be a power of two between 1 MB and 1 GB.");
if (!IsValidWalSegSize(longhdr->xlp_seg_size))
{
- pg_log_error(ngettext("invalid WAL segment size in WAL file \"%s\" (%d byte)",
- "invalid WAL segment size in WAL file \"%s\" (%d bytes)",
+ pg_log_error(ngettext("invalid WAL segment size in WAL file \"%s\" (%u byte)",
+ "invalid WAL segment size in WAL file \"%s\" (%u bytes)",
longhdr->xlp_seg_size),
fname, longhdr->xlp_seg_size);
pg_log_error_detail("The WAL segment size must be a power of two between 1 MB and 1 GB.");