Switched to TidStore for HNSW vacuuming for Postgres 17+ [skip ci]

This commit is contained in:
Andrew Kane
2026-07-01 16:28:49 -07:00
parent 89fda3e100
commit 0587d4b834
3 changed files with 47 additions and 3 deletions

View File

@@ -26,6 +26,12 @@
typedef Pointer Item;
#endif
#if PG_VERSION_NUM >= 170000
#define HnswTidStore TidStore
#else
#define HnswTidStore tidhash_hash
#endif
#define HNSW_MAX_DIM 2000
#define HNSW_MAX_NNZ 1000
@@ -427,7 +433,7 @@ typedef struct HnswVacuumState
HnswSupport support;
/* Variables */
struct tidhash_hash *deleting;
struct HnswTidStore *deleting;
BufferAccessStrategy bas;
HnswNeighborTuple ntup;
HnswElementData highestPoint;