From: Josh Berkus <josh@agliodbs.com>
To: pgsql-hackers@postgresql.org
Subject: Re: [BUGS] extract(epoch from infinity) is not 0
Date: Wed, 13 Jul 2011 14:22:26 -0700
Message-ID: <4E1E0C92.40205@agliodbs.com> (raw)
In-Reply-To: <F5B7B9C4-66FD-4E47-9FBC-02EAB14B491E@gmail.com>
References: <201107131843.p6DIh8923252@momjian.us>
<F5B7B9C4-66FD-4E47-9FBC-02EAB14B491E@gmail.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: josh@agliodbs.com, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] extract(epoch from infinity) is not 0
In-Reply-To: <4E1E0C92.40205@agliodbs.com>
References: <201107131843.p6DIh8923252@momjian.us> <F5B7B9C4-66FD-4E47-9FBC-02EAB14B491E@gmail.com> <4E1E0C92.40205@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox