pgvector.git / summary / log / commit / refs
commit 2a7b954bebda160ac449e8d2a6f9c4cb8c42417f
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Jul 28 05:30:23 2026 +0000
Fixed version check for palloc variants, take 2
src/halfvec.c | 2 +-
src/hnsw.h | 2 +-
src/ivfflat.h | 2 +-
src/sparsevec.c | 2 +-
src/vector.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/halfvec.c b/src/halfvec.c
index 41545849..ec53b21d 100644
--- a/src/halfvec.c
+++ b/src/halfvec.c
@@ -27,7 +27,7 @@
#include "parser/scansup.h"
#endif
-#if PG_VERSION_NUM < 140600
+#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif
diff --git a/src/hnsw.h b/src/hnsw.h
index b7eee625..18726b56 100644
--- a/src/hnsw.h
+++ b/src/hnsw.h
@@ -105,7 +105,7 @@ typedef Pointer Item;
#define SeedRandom(seed) srandom(seed)
#endif
-#if PG_VERSION_NUM < 140600
+#if PG_VERSION_NUM < 140006
#define palloc_object(type) ((type *) palloc(sizeof(type)))
#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
diff --git a/src/ivfflat.h b/src/ivfflat.h
index 2db682d8..bfff2acb 100644
--- a/src/ivfflat.h
+++ b/src/ivfflat.h
@@ -89,7 +89,7 @@ typedef Pointer Item;
#define SeedRandom(seed) srandom(seed)
#endif
-#if PG_VERSION_NUM < 140600
+#if PG_VERSION_NUM < 140006
#define palloc_object(type) ((type *) palloc(sizeof(type)))
#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
diff --git a/src/sparsevec.c b/src/sparsevec.c
index 89678f31..ef4796fc 100644
--- a/src/sparsevec.c
+++ b/src/sparsevec.c
@@ -26,7 +26,7 @@
#include "parser/scansup.h"
#endif
-#if PG_VERSION_NUM < 140600
+#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif
diff --git a/src/vector.c b/src/vector.c
index 0d4530e0..ded309c9 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -30,7 +30,7 @@
#include "parser/scansup.h"
#endif
-#if PG_VERSION_NUM < 140600
+#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif
[parent: 0b2d92bc4fdd]