mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-17 01:34:35 +08:00
Fixed initialization fork for IVFFlat indexes on unlogged tables - #591
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## 0.7.2 (unreleased)
|
## 0.7.2 (unreleased)
|
||||||
|
|
||||||
- Fixed initialization fork for HNSW indexes on unlogged tables
|
- Fixed initialization fork for indexes on unlogged tables
|
||||||
|
|
||||||
## 0.7.1 (2024-06-03)
|
## 0.7.1 (2024-06-03)
|
||||||
|
|
||||||
|
|||||||
@@ -1006,6 +1006,10 @@ BuildIndex(Relation heap, Relation index, IndexInfo *indexInfo,
|
|||||||
CreateListPages(index, buildstate->centers, buildstate->dimensions, buildstate->lists, forkNum, &buildstate->listInfo);
|
CreateListPages(index, buildstate->centers, buildstate->dimensions, buildstate->lists, forkNum, &buildstate->listInfo);
|
||||||
CreateEntryPages(buildstate, forkNum);
|
CreateEntryPages(buildstate, forkNum);
|
||||||
|
|
||||||
|
/* GenericXLog functions skip unlogged tables */
|
||||||
|
if (forkNum == INIT_FORKNUM)
|
||||||
|
log_newpage_range(index, forkNum, 0, RelationGetNumberOfBlocksInFork(index, forkNum), true);
|
||||||
|
|
||||||
FreeBuildState(buildstate);
|
FreeBuildState(buildstate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user