Improved performance of index creation for Postgres < 12

This commit is contained in:
Andrew Kane
2022-02-15 18:05:33 -08:00
parent fed60dce78
commit 0d025be9d3
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}
}