From: Robert Haas Date: Tue, 11 Jun 2019 00:04:44 +0000 (-0400) Subject: tableam: Fix index_build_range_scan parameter name. X-Git-Tag: REL_12_BETA2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=132a1c101a205ee52ec7d731abcb8593a6354097;p=postgresql 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 --- 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);