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

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

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ms swati chande 2009-07-08 18:48:08 Re: Password?
Previous Message Tom Lane 2009-07-08 18:44:43 Re: Checkpoint Tuning Question