Re: age command

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Theofel <theofel(at)etes(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: age command
Date: 2002-08-13 14:19:42
Message-ID: 25542.1029248382@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan Theofel <theofel(at)etes(dot)de> writes:
> But what I need is the total difference in days as integer.

Subtract the dates.

regression=# select date('2002-08-13') - date('2002-07-13');
?column?
----------
31
(1 row)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-08-13 14:23:40 Re: [GENERAL] Linux Largefile Support In Postgresql RPMS
Previous Message Peter Darley 2002-08-13 13:55:24 Re: Vacuum problem