From 48ba549a0a05acec7778577177516f3e735fffb4 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 5 Feb 2024 21:43:49 -0800 Subject: [PATCH] Fixed Postgres 12 --- src/hnswutils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hnswutils.c b/src/hnswutils.c index 55668fd..2b34dff 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -12,6 +12,10 @@ #include "utils/rel.h" #include "vector.h" +#if PG_VERSION_NUM < 130000 +#define TYPSTORAGE_PLAIN 'p' +#endif + #if PG_VERSION_NUM >= 130000 #include "common/hashfn.h" #else