From 87ac108bf736de4ae31144ae828de82fdae740d1 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 23 Sep 2024 15:26:31 -0700 Subject: [PATCH] Removed code for Postgres 12 [skip ci] --- src/halfvec.c | 18 ------------------ src/vector.c | 18 ------------------ 2 files changed, 36 deletions(-) diff --git a/src/halfvec.c b/src/halfvec.c index 9cd3de6..aad320b 100644 --- a/src/halfvec.c +++ b/src/halfvec.c @@ -159,24 +159,6 @@ CheckStateArray(ArrayType *statearray, const char *caller) return (float8 *) ARR_DATA_PTR(statearray); } -#if PG_VERSION_NUM < 120003 -static pg_noinline void -float_overflow_error(void) -{ - ereport(ERROR, - (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), - errmsg("value out of range: overflow"))); -} - -static pg_noinline void -float_underflow_error(void) -{ - ereport(ERROR, - (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), - errmsg("value out of range: underflow"))); -} -#endif - /* * Convert textual representation to internal representation */ diff --git a/src/vector.c b/src/vector.c index facc07e..a5b2aac 100644 --- a/src/vector.c +++ b/src/vector.c @@ -155,24 +155,6 @@ CheckStateArray(ArrayType *statearray, const char *caller) return (float8 *) ARR_DATA_PTR(statearray); } -#if PG_VERSION_NUM < 120003 -static pg_noinline void -float_overflow_error(void) -{ - ereport(ERROR, - (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), - errmsg("value out of range: overflow"))); -} - -static pg_noinline void -float_underflow_error(void) -{ - ereport(ERROR, - (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), - errmsg("value out of range: underflow"))); -} -#endif - /* * Convert textual representation to internal representation */