Fixed initialization fork for IVFFlat indexes on unlogged tables - #591

This commit is contained in:
Andrew Kane
2024-06-10 21:55:17 -07:00
parent 9249e7e2de
commit 8c91a9f56a
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
## 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)

View File

@@ -1006,6 +1006,10 @@ BuildIndex(Relation heap, Relation index, IndexInfo *indexInfo,
CreateListPages(index, buildstate->centers, buildstate->dimensions, buildstate->lists, forkNum, &buildstate->listInfo);
CreateEntryPages(buildstate, forkNum);
/* GenericXLog functions skip unlogged tables */
if (forkNum == INIT_FORKNUM)
log_newpage_range(index, forkNum, 0, RelationGetNumberOfBlocksInFork(index, forkNum), true);
FreeBuildState(buildstate);
}