mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +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 (RelationNeedsWAL(index))
|
||||||
{
|
{
|
||||||
#if PG_VERSION_NUM >= 110008
|
#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
|
#else
|
||||||
for (BlockNumber blkno = 0; blkno < RelationGetNumberOfBlocksInFork(index, forkNum); blkno++)
|
for (BlockNumber blkno = 0; blkno < RelationGetNumberOfBlocksInFork(index, forkNum); blkno++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user