From 132a1c101a205ee52ec7d731abcb8593a6354097 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Mon, 10 Jun 2019 20:04:44 -0400 Subject: [PATCH] tableam: Fix index_build_range_scan parameter name. All of the other code thinks that the 8th parameter is the number of blocks, but this declaration thinks that it's the ending block number. Repair this inconsistency. Patch by me, reviewed by Andres Freund. Discussion: http://postgr.es/m/CA+TgmoY49ManQWnJtiwkuytXBkmyTuDFqb74Pr4Zn2Nq9TuNBQ@mail.gmail.com --- src/include/access/tableam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 585c120e18..fd07773b74 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -543,7 +543,7 @@ typedef struct TableAmRoutine bool anyvisible, bool progress, BlockNumber start_blockno, - BlockNumber end_blockno, + BlockNumber numblocks, IndexBuildCallback callback, void *callback_state, TableScanDesc scan);