diff --git a/src/ivfbuild.c b/src/ivfbuild.c index 4604fb5..3be9391 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -145,12 +145,7 @@ SampleRows(IvfflatBuildState * buildstate) { BlockNumber targblock = BlockSampler_Next(&buildstate->bs); - /* - * anyvisible must be false when the scan uses an MVCC snapshot - * (i.e. CREATE INDEX CONCURRENTLY), otherwise PG will assert in - * heapam_index_build_range_scan. Always pass false here, matching - * what table_index_build_scan does internally. - */ + /* Set anyvisible to false like table_index_build_scan */ table_index_build_range_scan(buildstate->heap, buildstate->index, buildstate->indexInfo, false, false, false, targblock, 1, SampleCallback, (void *) buildstate, NULL); }