From de26e1e78a3a09128344b8880eaf9e777ddd261f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 7 Dec 2022 15:52:35 -0800 Subject: [PATCH] Perform version check earlier [skip ci] --- src/ivfflat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ivfflat.h b/src/ivfflat.h index 46c2111..a72a3ab 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -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