pgvector.git / summary / log / commit / refs
commit d5b17a36249c6f8aafe382f8d093664d7c170398
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Apr 25 16:36:21 2023 +0000
Fixed installation error with Postgres 12.0-12.2 - fixes #101
CHANGELOG.md | 1 +
src/vector.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23865e03..35cc5197 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
## 0.4.2 (unreleased)
- Added notice when index created with little data
+- Fixed installation error with Postgres 12.0-12.2
## 0.4.1 (2023-03-21)
diff --git a/src/vector.c b/src/vector.c
index 8ba1952c..7c128e56 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -100,7 +100,7 @@ CheckStateArray(ArrayType *statearray, const char *caller)
return (float8 *) ARR_DATA_PTR(statearray);
}
-#if PG_VERSION_NUM < 120000
+#if PG_VERSION_NUM < 120003
static pg_noinline void
float_overflow_error(void)
{
[parent: 6383078029db]