Use more consistently int64 for page numbers in SLRU-related code
Michael Paquier <michael@paquier.xyz>
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.dc.nmisch@google.com Backpatch-through: 17
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/clog.c | modified | +2 −2 |
| src/backend/commands/async.c | modified | +11 −11 |
| src/backend/storage/lmgr/predicate.c | modified | +3 −3 |
Discussion
- XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15) 149 messages · 2022-03-17 → 2024-08-19