]> granicus.if.org Git - postgresql/commit
Allow to_timestamp(float8) to convert float infinity to timestamp infinity.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Mar 2016 21:09:21 +0000 (17:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Mar 2016 21:09:29 +0000 (17:09 -0400)
commite511d878f3bbc205cd260a79740e646eea3c1cd3
tree89a142f73641afe47d816117b08fbf01ce465258
parent96f8373cad5d6066baeb7a1c5a88f6f5c9661974
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
doc/src/sgml/func.sgml
src/backend/utils/adt/timestamp.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/timestamp.h
src/test/regress/expected/timestamptz.out
src/test/regress/sql/timestamptz.sql