aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-04-17 09:40:50 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-04-17 09:40:50 +0200
commitf59b58e2a1b7e4a48dee36cc61966759da0faedd (patch)
tree4eba4ba0c197e468421d80101909b78db435e266 /src/backend/access/gist/gistbuild.c
parentf24b156997059c257c697b825f022d115825091d (diff)
downloadpostgresql-f59b58e2a1b7e4a48dee36cc61966759da0faedd.tar.gz
postgresql-f59b58e2a1b7e4a48dee36cc61966759da0faedd.zip
Use correct format placeholder for block numbers
Should be %u rather than %d.
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
-rw-r--r--src/backend/access/gist/gistbuild.c4
1 files changed, 2 insertions, 2 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;
}