Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf59b58e

Browse files
committed
Use correct format placeholder for block numbers
Should be %u rather than %d.
1 parentf24b156 commitf59b58e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎src/backend/access/gist/gistbuild.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ gistBufferingFindCorrectParent(GISTBuildState *buildstate,
12121212
* number.
12131213
*/
12141214
if (*parentblkno==InvalidBlockNumber)
1215-
elog(ERROR,"no parent buffer provided of child %d",childblkno);
1215+
elog(ERROR,"no parent buffer provided of child %u",childblkno);
12161216
parent=*parentblkno;
12171217
}
12181218

@@ -1545,7 +1545,7 @@ gistGetParent(GISTBuildState *buildstate, BlockNumber child)
15451545
HASH_FIND,
15461546
&found);
15471547
if (!found)
1548-
elog(ERROR,"could not find parent of block %d in lookup table",child);
1548+
elog(ERROR,"could not find parent of block %u in lookup table",child);
15491549

15501550
returnentry->parentblkno;
15511551
}

‎src/backend/access/heap/vacuumlazy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ static void
22602260
lazy_vacuum_heap_rel(LVRelState*vacrel)
22612261
{
22622262
inttupindex;
2263-
intvacuumed_pages;
2263+
BlockNumbervacuumed_pages;
22642264
PGRUsageru0;
22652265
Buffervmbuffer=InvalidBuffer;
22662266
LVSavedErrInfosaved_err_info;

‎src/backend/replication/basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ sendFile(const char *readfilename, const char *tarfilename,
16761676
{
16771677
ereport(WARNING,
16781678
(errmsg("could not verify checksum in file \"%s\", block "
1679-
"%d: read buffer size %d and page size %d "
1679+
"%u: read buffer size %d and page size %d "
16801680
"differ",
16811681
readfilename,blkno, (int)cnt,BLCKSZ)));
16821682
verify_checksum= false;
@@ -1749,7 +1749,7 @@ sendFile(const char *readfilename, const char *tarfilename,
17491749
if (checksum_failures <=5)
17501750
ereport(WARNING,
17511751
(errmsg("checksum verification failed in "
1752-
"file \"%s\", block %d: calculated "
1752+
"file \"%s\", block %u: calculated "
17531753
"%X but expected %X",
17541754
readfilename,blkno,checksum,
17551755
phdr->pd_checksum)));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp