Re: now() + '4d' AT TIME ZONE issue

From: Madison Kelly <linux(at)alteeve(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: postgres list <pgsql-general(at)postgresql(dot)org>, Chris Spotts <rfusca(at)gmail(dot)com>
Subject: Re: now() + '4d' AT TIME ZONE issue
Date: 2009-07-08 19:09:26
Message-ID: 4A54EEE6.7070201@alteeve.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Madison Kelly <linux(at)alteeve(dot)com> writes:
>> SELECT
>> now() AT TIME ZONE 'America/Toronto',
>> now() + '4d' AS future AT TIME ZONE 'America/Toronto';
>
> You've got "AS future" in the wrong place.
>
> regards, tom lane
>

Thank you both, Chris and Tom. That was indeed my oops.

Madi

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Armbrust 2009-07-08 19:14:55 Re: Checkpoint Tuning Question
Previous Message Andreas Wenk 2009-07-08 18:58:43 Re: Password?