Re: Alter table add column ignores default

From: Nabil Sayegh <nsmail(at)sayegh(dot)de>
To: Vince Vielhaber <vev(at)michvhf(dot)com>
Cc: Nabil Sayegh <nsmail(at)sayegh(dot)de>, vev(at)hub(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Alter table add column ignores default
Date: 2001-05-08 15:14:10
Message-ID: 20010508151157.1D51014EE62@gerstung3.net-lab.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Todd R. Eigenschink 2001-05-08 15:15:19 REQ: build src/backend/postgres w/o -lncurses or -lreadline
Previous Message Vince Vielhaber 2001-05-08 14:31:17 Re: Alter table add column ignores default