From 51dc18d5b732bb083210f1f336f5a0c68b116edd Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 6 Feb 2022 15:15:46 -0800 Subject: [PATCH] Added compiler error for unsupported versions of Postgres --- src/ivfflat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ivfflat.h b/src/ivfflat.h index a6a9a5b..8fbaad7 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -10,6 +10,10 @@ #include "utils/tuplesort.h" #include "vector.h" +#if PG_VERSION_NUM < 90600 +#error "Requires PostgreSQL 9.6+" +#endif + /* Support functions */ #define IVFFLAT_DISTANCE_PROC 1 #define IVFFLAT_NORM_PROC 2