]> granicus.if.org Git - postgresql/commitdiff
tableam: Fix index_build_range_scan parameter name.
authorRobert Haas <rhaas@postgresql.org>
Tue, 11 Jun 2019 00:04:44 +0000 (20:04 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 11 Jun 2019 00:04:48 +0000 (20:04 -0400)
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

index 585c120e18852a62ab632d255214abbe4044b161..fd07773b74f38d4079cf7d0c520cd1b76d3e383b 100644 (file)
@@ -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);