Re: [BUGS] extract(epoch from infinity) is not 0 - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: [BUGS] extract(epoch from infinity) is not 0
Date
Msg-id 4E1E0C92.40205@agliodbs.com
Whole thread Raw
In response to Re: [BUGS] extract(epoch from infinity) is not 0  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
> It's sort of non-obvious that either behavior is better than the other.

Here's the reason why the existing behavior is wrong:

postgres=# select extract('epoch' from timestamptz 'infinity') = extract
('epoch' from timestamptz '1970-01-01 00:00:00-00');?column?
----------t

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: [BUGS] extract(epoch from infinity) is not 0
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] extract(epoch from infinity) is not 0