Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Nico Grubert <nicogrubert(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist
Date: 2009-03-05 18:50:34
Message-ID: dcc563d10903051050g11c691e9oaf63237cb5ccdbd8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 5, 2009 at 9:48 AM, Nico Grubert <nicogrubert(at)gmail(dot)com> wrote:
> Dear list members
>
> I have upgraded my PostgreSQL 8.2.6 to 8.3.6 and I am having trouble with
> calling "to_timestamp" function.
>
> Here is the query I use:
>
>  SELECT a.*
>  FROM tblevent a
>  WHERE to_timestamp(a.from_datetime,'YYYY/MM/DD') >= to_timestamp(
> NOW(),'YYYY/MM/DD' )
>  ORDER BY a.from_datetime
>
> In PostgreSQL 8.2.6 everything works fine.
> In PostgreSQL 8.3.6 I get the following error:

OK, so you want to see if a timestamp is greater than now()? Why not
just compare them?

where a.from_datetime >= now()

?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-03-05 18:56:45 Re: Problem with SSL: "could not accept SSL connection: EOF detected"
Previous Message Heine Ferreira 2009-03-05 18:45:53 converting older databases