mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-30 01:31:15 +08:00
Use forkNum [skip ci]
This commit is contained in:
@@ -890,7 +890,7 @@ BuildIndex(Relation heap, Relation index, IndexInfo *indexInfo,
|
||||
if (RelationNeedsWAL(index))
|
||||
{
|
||||
#if PG_VERSION_NUM >= 110008
|
||||
log_newpage_range(index, MAIN_FORKNUM, 0, RelationGetNumberOfBlocks(index), true);
|
||||
log_newpage_range(index, forkNum, 0, RelationGetNumberOfBlocks(index), true);
|
||||
#else
|
||||
for (BlockNumber blkno = 0; blkno < RelationGetNumberOfBlocksInFork(index, forkNum); blkno++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user