Re: [HACKERS] Returning 'Infinity'::TIMESTAMPTZ from "to_timestamp" function

2016-04-27 Thread Bruce Momjian
FYI, I show this as fixed in 9.6: test=> SELECT to_timestamp('Infinity'::float); to_timestamp -- infinity (1 row) --- On Sun, Nov 8, 2015 at 09:15:16PM -0800, Vitaly

Re: [HACKERS] Returning 'Infinity'::TIMESTAMPTZ from "to_timestamp" function

2015-11-08 Thread Tom Lane
Vitaly Burovoy writes: > To add an ability to construct 'Infinity' TIMESTAMPTZ via > "to_timestamp" call, there are two ways: > 1. Rewrite the function "pg_catalog.to_timestamp(double precision)" as > an internal one. It's the easiest way, because it allows to avoid >

[HACKERS] Returning 'Infinity'::TIMESTAMPTZ from "to_timestamp" function

2015-11-08 Thread Vitaly Burovoy
Hello everyone! Continuing the topic of extracting EPOCH from 'Infinity'::TIMESTAMPTZ and according to an item "converting between infinity timestamp and float8" in the TODO list... Even when "SELECT extract(EPOCH FROM TIMESTAMPTZ 'Infinity')" results 'Infinity'::float, there is still trouble to