Skip site navigation (1) Skip section navigation (2)

Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: andrew(at)catalyst(dot)net(dot)nz, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works
Date: 2002-03-01 15:03:41
Message-ID: 28178.1014995021@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
pgsql-bugs(at)postgresql(dot)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

In response to

pgsql-hackers by date

Next:From: Marc G. FournierDate: 2002-03-01 15:07:28
Subject: Re: Database Caching
Previous:From: Jan WieckDate: 2002-03-01 14:22:29
Subject: Re: Database Caching

pgsql-bugs by date

Next:From: Thomas LockhartDate: 2002-03-01 15:16:23
Subject: Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works
Previous:From: Tom LaneDate: 2002-03-01 14:37:40
Subject: Re: Indexes not always used after inserts/updates/vacuum analyze

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group