mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user