Use more consistently int64 for page numbers in SLRU-related code
authorMichael Paquier <[email protected]>
Tue, 23 Jul 2024 08:59:20 +0000 (17:59 +0900)
committerMichael Paquier <[email protected]>
Tue, 23 Jul 2024 08:59:20 +0000 (17:59 +0900)
commit165ea79a60774a0e287bfc5dc07363194c6d58df
treec081446e5d82023c0b19a4aab5abd64187c201ed
parent3b279d89cb5c86fa7ac6faaebb3ddadb2dbe0ca8
Use more consistently int64 for page numbers in SLRU-related code

clog.c, async.c and predicate.c included some SLRU page numbers still
handled as 4-byte integers, while int64 should be used for this purpose.

These holes have been introduced in 4ed8f0913bfd, that has introduced
the use of 8-byte integers for SLRU page numbers, still forgot about the
code paths updated by this commit.

Reported-by: Noah Misch
Author: Aleksander Alekseev, Michael Paquier
Discussion: https://postgr.es/m/20240626002747[email protected]
Backpatch-through: 17
src/backend/access/transam/clog.c
src/backend/commands/async.c
src/backend/storage/lmgr/predicate.c