From: Martin Marques <martin@bugs.unl.edu.ar>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: age() vs. timestamp substraction
Date: Thu, 5 Oct 2006 15:43:39 -0300
Message-ID: <c82791b724c34d828f27af409356eef7@bugs.unl.edu.ar> (raw)
In-Reply-To: <29752.1160073444@sss.pgh.pa.us>
References: <29752.1160073444@sss.pgh.pa.us>
On Thu, 05 Oct 2006 14:37:24 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Martin Marques <martin@bugs.unl.edu.ar> writes:
>> I just found this problem with the age() function, which AFAIK should
>> give the same resulte as a subtraction of the argument from now(),
>
> Where did you get that idea? age's reference point is current_date (ie,
> midnight) not now(). There are also some differences in the calculation
> compared to a plain timestamp subtraction.
Ignore anything I said. Just realized it said current_date. :-(
Sorry.
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
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: pgsql-sql@postgresql.org
Cc: martin@bugs.unl.edu.ar, tgl@sss.pgh.pa.us
Subject: Re: age() vs. timestamp substraction
In-Reply-To: <c82791b724c34d828f27af409356eef7@bugs.unl.edu.ar>
* 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