From d5b17a36249c6f8aafe382f8d093664d7c170398 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 25 Apr 2023 09:36:21 -0700 Subject: [PATCH] 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 23865e0..35cc519 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 8ba1952..7c128e5 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) {