Perform version check earlier [skip ci]

This commit is contained in:
Andrew Kane
2022-12-07 15:52:35 -08:00
parent 8691d2ad53
commit de26e1e78a

View File

@@ -3,6 +3,10 @@
#include "postgres.h"
#if PG_VERSION_NUM < 100000
#error "Requires PostgreSQL 10+"
#endif
#include "access/generic_xlog.h"
#include "access/reloptions.h"
#include "nodes/execnodes.h"
@@ -19,10 +23,6 @@
#include "portability/instr_time.h"
#endif
#if PG_VERSION_NUM < 100000
#error "Requires PostgreSQL 10+"
#endif
/* Support functions */
#define IVFFLAT_DISTANCE_PROC 1
#define IVFFLAT_NORM_PROC 2