Fixed call to GenerationContextCreate for Postgres < 15

This commit is contained in:
Andrew Kane
2023-12-22 12:49:07 -05:00
parent dcbe0b6f0d
commit 42cd4c6833

View File

@@ -492,7 +492,10 @@ InitBuildState(HnswBuildState * buildstate, Relation heap, Relation index, Index
buildstate->graphCtx = GenerationContextCreate(CurrentMemoryContext,
"Hnsw build graph context",
1024 * 1024, 1024 * 1024, 1024 * 1024);
#if PG_VERSION_NUM >= 150000
1024 * 1024, 1024 * 1024,
#endif
1024 * 1024);
buildstate->tmpCtx = AllocSetContextCreate(CurrentMemoryContext,
"Hnsw build temporary context",
ALLOCSET_DEFAULT_SIZES);