Re: 9.2 timestamp function syntax error

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Guy Rouillier *EXTERN*" <guy(dot)rouillier(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: 9.2 timestamp function syntax error
Date: 2013-03-05 08:30:10
Message-ID: A737B7A37273E048B164557ADEF4A58B057BA839@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Guy Rouillier wrote:
> I don't understand the error resulting from the following progression on
> 9.2 (specifically "EnterpriseDB 9.2.1.3 on x86_64-unknown-linux-gnu,
> compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52), 64-bit"):
>
> select sysdate => timestamp without time zone
>
> select timestamptz(sysdate) => timestamp with time zone
>
> select timestamp(timestamptz(sysdate)) => ERROR: syntax error at or
> near "timestamptz"
>
> OR
>
> select timestamp(sysdate::timestamptz)) => ERROR: syntax error at or
> near "sysdate"
>
> I see a function in pg_catalog with signature timestamp(timestamp with
> time zone). Why isn't it being applied?

That must be EnterpriseDB's proprietary Postgres Plus, since
regular PostgreSQL doesn't have "sysdate".

Try to ask EnterpriseDB, they are more likely to be able to help.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2013-03-05 09:29:29 Finding matching words in a word game
Previous Message Albe Laurenz 2013-03-05 08:03:41 Re: [HACKERS] Floating point error