Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works
Date
Msg-id 28178.1014995021@sss.pgh.pa.us
Whole thread Raw
In response to Bug #605: timestamp(timestamp('a timestamp)) no longer works  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> timestamp(timestamp('a timestamp)) no longer works

timestamp(x) is a type name now.  In place of timestamp(foo) use

    "timestamp"(foo)
    foo::timestamp
    CAST(foo AS timestamp)

And yes, this is pointed out in the migration notes...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Indexes not always used after inserts/updates/vacuum analyze
Next
From: Thomas Lockhart
Date:
Subject: Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works