From cad655b77f92f49fd3533403013b1b7b74a9cb7a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 15 Feb 2022 18:06:41 -0800 Subject: [PATCH] Improved performance of index creation for Postgres < 12 --- src/ivfkmeans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index de2c07e..6f6cd72 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -232,10 +232,10 @@ SampleRows(IvfflatBuildState * buildstate) false, true, true, targblock, 1, SampleCallback, (void *) buildstate, NULL); #elif PG_VERSION_NUM >= 110000 IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo, - true, true, targblock, 1, SampleCallback, (void *) buildstate, NULL); + false, true, targblock, 1, SampleCallback, (void *) buildstate, NULL); #else IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo, - true, true, targblock, 1, SampleCallback, (void *) buildstate); + false, true, targblock, 1, SampleCallback, (void *) buildstate); #endif } }