mirror of
https://github.com/postgres/postgres.git
synced 2026-06-11 01:30:11 -04:00
Fix incorrect format placeholders
This commit is contained in:
parent
090c4297e4
commit
5936afe1ee
3 changed files with 6 additions and 6 deletions
|
|
@ -545,7 +545,7 @@ InitShmemIndexEntry(ShmemRequest *request)
|
|||
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;
|
||||
|
|
@ -601,7 +601,7 @@ AttachShmemIndexEntry(ShmemRequest *request, bool missing_ok)
|
|||
{
|
||||
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)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -202,8 +202,8 @@ init_archive_reader(XLogDumpPrivate *privateInfo,
|
|||
|
||||
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.");
|
||||
|
|
|
|||
|
|
@ -245,8 +245,8 @@ search_directory(const char *directory, const char *fname, int *WalSegSz)
|
|||
|
||||
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.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue