mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Simplified comment [skip ci]
This commit is contained in:
@@ -145,12 +145,7 @@ SampleRows(IvfflatBuildState * buildstate)
|
|||||||
{
|
{
|
||||||
BlockNumber targblock = BlockSampler_Next(&buildstate->bs);
|
BlockNumber targblock = BlockSampler_Next(&buildstate->bs);
|
||||||
|
|
||||||
/*
|
/* Set anyvisible to false like table_index_build_scan */
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
table_index_build_range_scan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
table_index_build_range_scan(buildstate->heap, buildstate->index, buildstate->indexInfo,
|
||||||
false, false, false, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
false, false, false, targblock, 1, SampleCallback, (void *) buildstate, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user