Re: ALTER TABLE ... SET DEFAULT - Mailing list pgsql-admin

From Tom Lane
Subject Re: ALTER TABLE ... SET DEFAULT
Date
Msg-id 27183.1018620046@sss.pgh.pa.us
Whole thread Raw
In response to ALTER TABLE ... SET DEFAULT  (Brian McCane <bmccane@mccons.net>)
Responses Re: ALTER TABLE ... SET DEFAULT  (Brian McCane <bmccane@mccons.net>)
List pgsql-admin
Brian McCane <bmccane@mccons.net> writes:
> alter table foo alter column updated set default 'since_epoch()' ;
> this gets the error:
> ERROR:  pg_atoi: error in "since_epoch()": can't parse "since_epoch()"

Try it without the quotes.

            regards, tom lane

pgsql-admin by date:

Previous
From: Brian McCane
Date:
Subject: Re: ALTER TABLE ... SET DEFAULT
Next
From: "Nick Fankhauser"
Date:
Subject: A *short* planner question