From 0d025be9d3e1cad590b9c4042deb32fa347626a4 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 15 Feb 2022 18:05:33 -0800 Subject: [PATCH] Improved performance of index creation for Postgres < 12 --- CHANGELOG.md | 4 ++++ src/ivfbuild.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 240efd8..d9646d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.6 (unreleased) + +- Improved performance of index creation for Postgres < 12 + ## 0.2.5 (2022-02-11) - Reduced memory usage during index creation diff --git a/src/ivfbuild.c b/src/ivfbuild.c index 11283d0..645031c 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -115,10 +115,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 } }