From 65e04acab6151e00f5ceabe3c783745d3e30553f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 1 Sep 2023 00:07:38 -0700 Subject: [PATCH] Added missing headers for Postgres < 14 --- src/hnsw.h | 4 ++++ src/hnswbuild.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/hnsw.h b/src/hnsw.h index af39852..1ced9f6 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -15,6 +15,10 @@ #error "Requires PostgreSQL 11+" #endif +#if PG_VERSION_NUM < 120000 +#include "access/relscan.h" +#endif + #define HNSW_MAX_DIM 2000 /* Support functions */ diff --git a/src/hnswbuild.c b/src/hnswbuild.c index f298611..29fc9b9 100644 --- a/src/hnswbuild.c +++ b/src/hnswbuild.c @@ -3,6 +3,7 @@ #include #include "access/parallel.h" +#include "access/xact.h" #include "catalog/index.h" #include "hnsw.h" #include "miscadmin.h"