Re: Help with simple function

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: Jason Minion <jason(dot)minion(at)sigler(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with simple function
Date: 2005-12-28 15:33:08
Message-ID: 1d219a6f0512280733k74c7ecf6kdff6408ba6c6bfa5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 12/28/05, Jason Minion <jason(dot)minion(at)sigler(dot)com> wrote:
>
> And last but not least, you can do simple day addition and subtraction
> with dates using integers. For example:
>
> > select '2005-12-26'::date + 8;
>
> returns '2006-01-03'. However, I'm not sure if that will work with
> 7.3.x. Good luck with your 8.x install!
>
> Jason

That works like a charm. Thanks a bunch for the help.

Chris

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-12-28 15:58:03 Re: restored database locale problem
Previous Message Goulet, Dick 2005-12-28 15:26:22 Re: migrating oracle table to PostgresQL