From b7935bc10b78f3a44567d304df87fad3d53102dd Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Mon, 19 Aug 2024 12:34:52 +0900 Subject: Fix more holes with SLRU code in need of int64 for segment numbers This is a continuation of c9e24573905b, containing changes included into the proposed patch that have been missed in the actual commit. I have managed to miss these diffs while doing a rebase of the original patch. Thanks to Noah Misch, Peter Eisentraut and Alexander Korotkov for the pokes. Discussion: https://postgr.es/m/92fe572d-638e-4162-aef6-1c42a2936f25@eisentraut.org Discussion: https://postgr.es/m/20240810175055.cd.nmisch@google.com Backpatch-through: 17 --- src/backend/access/transam/slru.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/transam/slru.c') diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c index 27473009b00..e7f73bf4275 100644 --- a/src/backend/access/transam/slru.c +++ b/src/backend/access/transam/slru.c @@ -1532,7 +1532,7 @@ restart: did_write = false; for (int slotno = 0; slotno < shared->num_slots; slotno++) { - int pagesegno; + int64 pagesegno; int curbank = SlotGetBankNumber(slotno); /* -- cgit v1.2.3