public inbox for [email protected]
help / color / mirror / Atom feedFrom: Артем Анисимов <[email protected]>
To: Bruce Momjian <[email protected]>
To: Alvaro Herrera <[email protected]>
Cc: [email protected]
Subject: Re: BUG #7722: extract(epoch from age(...)) appears to be broken
Date: Tue, 04 Dec 2012 09:16:14 +0400
Message-ID: <2042272.iJfXXT9BJj@vault13> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-bugs>
Dear Mr. Herrera and Mr. Momjian,
thank you for your feedback and for explaining that age() better not be used.
On Monday 03 December 2012 03:05:57 Alvaro Herrera wrote:
> The problem is that age() returns 30 days in one case, and "one month" in
> the other; extract() then considers the month as equivalent to 30 days.
> This is documented as such, see [1].
On Monday 03 December 2012 21:17:00 Bruce Momjian wrote:
> Wow, that is a weird case. In the first test, we count the number of
> days because it is less than a full month. In the second case, we call
> it a full month, but then forget how long it is. Not sure how we could
> improve this.
Best regargs,
Artem Anisimov.
--
Sent via pgsql-bugs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
view thread (9+ messages) latest in thread
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: BUG #7722: extract(epoch from age(...)) appears to be broken
In-Reply-To: <2042272.iJfXXT9BJj@vault13>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox