Added compiler error for unsupported versions of Postgres

This commit is contained in:
Andrew Kane
2022-02-06 15:15:46 -08:00
parent cb108ebfd2
commit 51dc18d5b7

View File

@@ -10,6 +10,10 @@
#include "utils/tuplesort.h" #include "utils/tuplesort.h"
#include "vector.h" #include "vector.h"
#if PG_VERSION_NUM < 90600
#error "Requires PostgreSQL 9.6+"
#endif
/* Support functions */ /* Support functions */
#define IVFFLAT_DISTANCE_PROC 1 #define IVFFLAT_DISTANCE_PROC 1
#define IVFFLAT_NORM_PROC 2 #define IVFFLAT_NORM_PROC 2