mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Improved performance of index creation for Postgres < 12
This commit is contained in:
@@ -232,10 +232,10 @@ SampleRows(IvfflatBuildState * buildstate)
|
|||||||
false, true, true, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
false, true, true, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
||||||
#elif PG_VERSION_NUM >= 110000
|
#elif PG_VERSION_NUM >= 110000
|
||||||
IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
||||||
true, true, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
false, true, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
||||||
#else
|
#else
|
||||||
IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
IndexBuildHeapRangeScan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
||||||
true, true, targblock, 1, SampleCallback, (void *) buildstate);
|
false, true, targblock, 1, SampleCallback, (void *) buildstate);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user