aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/access/gist/gistbuild.c4
-rw-r--r--src/backend/access/heap/vacuumlazy.c2
-rw-r--r--src/backend/replication/basebackup.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/gist/gistbuild.c b/src/backend/access/gist/gistbuild.c
index 1054f6f1f2e..36edc576a88 100644
--- a/src/backend/access/gist/gistbuild.c
+++ b/src/backend/access/gist/gistbuild.c
@@ -1212,7 +1212,7 @@ gistBufferingFindCorrectParent(GISTBuildState *buildstate,
* number.
*/
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;
}
@@ -1545,7 +1545,7 @@ gistGetParent(GISTBuildState *buildstate, BlockNumber child)
HASH_FIND,
&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;
}
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c
index 9f9ba5d308b..e90fc18aa9a 100644
--- a/src/backend/access/heap/vacuumlazy.c
+++ b/src/backend/access/heap/vacuumlazy.c
@@ -2260,7 +2260,7 @@ static void
lazy_vacuum_heap_rel(LVRelState *vacrel)
{
int tupindex;
- int vacuumed_pages;
+ BlockNumber vacuumed_pages;
PGRUsage ru0;
Buffer vmbuffer = InvalidBuffer;
LVSavedErrInfo saved_err_info;
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c
index 56cd473f9f3..767eac33e4f 100644
--- a/src/backend/replication/basebackup.c
+++ b/src/backend/replication/basebackup.c
@@ -1676,7 +1676,7 @@ sendFile(const char *readfilename, const char *tarfilename,
{
ereport(WARNING,
(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",
readfilename, blkno, (int) cnt, BLCKSZ)));
verify_checksum = false;
@@ -1749,7 +1749,7 @@ sendFile(const char *readfilename, const char *tarfilename,
if (checksum_failures <= 5)
ereport(WARNING,
(errmsg("checksum verification failed in "
- "file \"%s\", block %d: calculated "
+ "file \"%s\", block %u: calculated "
"%X but expected %X",
readfilename, blkno, checksum,
phdr->pd_checksum)));