Doug Needham <[EMAIL PROTECTED]> writes: > I created a database on postgres 7.1 > one of the fields was defined with a default of : > 'select now()::"timestamp" > When I try to create this table under 7.2 it fails.
Hmm, looks fine to me: regression=# create table foobar (f1 timestamp default now()::"timestamp"); CREATE regression=# insert into foobar default values; INSERT 401822 1 regression=# select * from foobar; f1 ------------------------------- 2002-02-22 12:45:39.189714-05 (1 row) Could you be more exact in your description of what you entered and what problem you saw? Personally I'd just say "default now()", or "default current_timestamp" if I wanted to be SQL92-correct, but the cast should be okay too. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]