Re: Datetime operators (was: Re: [SQL] Another Date question) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Datetime operators (was: Re: [SQL] Another Date question)
Date
Msg-id 3219.944260558@sss.pgh.pa.us
Whole thread Raw
In response to Re: Datetime operators (was: Re: [SQL] Another Date question)  (<kaiq@realtyideas.com>)
List pgsql-hackers
<kaiq@realtyideas.com> writes:
> why 
> create table mymy (mydate datetime default (now() + '60 days'::timespan )); 
> does not work?

I believe :: casts are broken in default expressions in 6.5.*.  They are
fixed in current sources (which is what Thomas probably tried) --- but
in the meantime, that expression will work fine without the cast...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jeff Hoffmann
Date:
Subject: Re: [HACKERS] Re: Geometric Data Type in PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions