From e511d878f3bbc205cd260a79740e646eea3c1cd3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 29 Mar 2016 17:09:21 -0400 Subject: Allow to_timestamp(float8) to convert float infinity to timestamp infinity. With the original SQL-function implementation, such cases failed because we don't support infinite intervals. Converting the function to C lets us bypass the interval representation, which should be a bit faster as well as more flexible. Vitaly Burovoy, reviewed by Anastasia Lubennikova --- src/include/utils/timestamp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/utils') diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index fbead3a168..865e993e8a 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -124,6 +124,7 @@ extern Datum timestamp_cmp_timestamptz(PG_FUNCTION_ARGS); extern Datum make_timestamp(PG_FUNCTION_ARGS); extern Datum make_timestamptz(PG_FUNCTION_ARGS); extern Datum make_timestamptz_at_timezone(PG_FUNCTION_ARGS); +extern Datum float8_timestamptz(PG_FUNCTION_ARGS); extern Datum timestamptz_eq_timestamp(PG_FUNCTION_ARGS); extern Datum timestamptz_ne_timestamp(PG_FUNCTION_ARGS); -- cgit v1.2.3