Re: Ambiguous behaviour of age(timestamp)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kouber Saparev" <kouber(at)saparev(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Ambiguous behaviour of age(timestamp)
Date: 2004-12-01 20:01:16
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-bugs

"Kouber Saparev" <kouber(at)saparev(dot)com> writes:
> I think the documentation is misleading, because AGE(timestamp) is actually
> converted to AGE(current_date, timestamp), and not to AGE(now(), timestamp).

Well, it says "Subtract from today", which I'd interpret as meaning
"current_date" not "now", but I made it say "Subtract from current_date"
just to be sure.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Page 2004-12-01 20:27:18 Re: BUG #1319: Windows LIB file libecpg.lib not in build or package
Previous Message postgresbugs 2004-12-01 19:58:46 Foreign keys referencing parent table fails on insert