Re: Alter table add column ignores default - Mailing list pgsql-bugs

From Nabil Sayegh
Subject Re: Alter table add column ignores default
Date
Msg-id 20010508151157.1D51014EE62@gerstung3.net-lab.net
Whole thread Raw
In response to Alter table add column ignores default  (pgsql-bugs@postgresql.org)
Responses Re: Alter table add column ignores default
List pgsql-bugs
On 08 May 2001 10:31:17 -0400, Vince Vielhaber wrote:
> > http://hermes.swu.bg/postgres/postgres/sql-altertable.htm
> > The correct syntax is:
> > ALTER TABLE foobar add column address varchar(50);
> > ALTER TABLE foobar alter column address set default 'none';
>
> If this:
>
> alter table foobar add column address varchar(50) default 'none';
>
> is the incorrect syntax, why does it not fail or at least give a
> warning?



Sorry, I meant: Try this workaround :)


cu

--
 Nabil Sayegh

pgsql-bugs by date:

Previous
From: Nabil Sayegh
Date:
Subject: Re: Alter table add column ignores default
Next
From: Peter Eisentraut
Date:
Subject: Re: Paths for C functions (was Re: Re: backend dies on 7.1.1 loading large datamodel.)