Use correct format placeholder for block numbers
Should be %u rather than %d.
This commit is contained in:
parent
f24b156997
commit
f59b58e2a1
@ -1212,7 +1212,7 @@ gistBufferingFindCorrectParent(GISTBuildState *buildstate,
|
|||||||
* number.
|
* number.
|
||||||
*/
|
*/
|
||||||
if (*parentblkno == InvalidBlockNumber)
|
if (*parentblkno == InvalidBlockNumber)
|
||||||
elog(ERROR, "no parent buffer provided of child %d", childblkno);
|
elog(ERROR, "no parent buffer provided of child %u", childblkno);
|
||||||
parent = *parentblkno;
|
parent = *parentblkno;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1545,7 +1545,7 @@ gistGetParent(GISTBuildState *buildstate, BlockNumber child)
|
|||||||
HASH_FIND,
|
HASH_FIND,
|
||||||
&found);
|
&found);
|
||||||
if (!found)
|
if (!found)
|
||||||
elog(ERROR, "could not find parent of block %d in lookup table", child);
|
elog(ERROR, "could not find parent of block %u in lookup table", child);
|
||||||
|
|
||||||
return entry->parentblkno;
|
return entry->parentblkno;
|
||||||
}
|
}
|
||||||
|
@ -2260,7 +2260,7 @@ static void
|
|||||||
lazy_vacuum_heap_rel(LVRelState *vacrel)
|
lazy_vacuum_heap_rel(LVRelState *vacrel)
|
||||||
{
|
{
|
||||||
int tupindex;
|
int tupindex;
|
||||||
int vacuumed_pages;
|
BlockNumber vacuumed_pages;
|
||||||
PGRUsage ru0;
|
PGRUsage ru0;
|
||||||
Buffer vmbuffer = InvalidBuffer;
|
Buffer vmbuffer = InvalidBuffer;
|
||||||
LVSavedErrInfo saved_err_info;
|
LVSavedErrInfo saved_err_info;
|
||||||
|
@ -1676,7 +1676,7 @@ sendFile(const char *readfilename, const char *tarfilename,
|
|||||||
{
|
{
|
||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errmsg("could not verify checksum in file \"%s\", block "
|
(errmsg("could not verify checksum in file \"%s\", block "
|
||||||
"%d: read buffer size %d and page size %d "
|
"%u: read buffer size %d and page size %d "
|
||||||
"differ",
|
"differ",
|
||||||
readfilename, blkno, (int) cnt, BLCKSZ)));
|
readfilename, blkno, (int) cnt, BLCKSZ)));
|
||||||
verify_checksum = false;
|
verify_checksum = false;
|
||||||
@ -1749,7 +1749,7 @@ sendFile(const char *readfilename, const char *tarfilename,
|
|||||||
if (checksum_failures <= 5)
|
if (checksum_failures <= 5)
|
||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errmsg("checksum verification failed in "
|
(errmsg("checksum verification failed in "
|
||||||
"file \"%s\", block %d: calculated "
|
"file \"%s\", block %u: calculated "
|
||||||
"%X but expected %X",
|
"%X but expected %X",
|
||||||
readfilename, blkno, checksum,
|
readfilename, blkno, checksum,
|
||||||
phdr->pd_checksum)));
|
phdr->pd_checksum)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user