Re: Alter table add column ignores default

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: Alter table add column ignores default
Дата
Msg-id 20010508151157.1D51014EE62@gerstung3.net-lab.net
обсуждение исходный текст
Ответ на Alter table add column ignores default  (pgsql-bugs@postgresql.org)
Ответы Re: Alter table add column ignores default  (Vince Vielhaber <vev@michvhf.com>)
Список 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 по дате отправления:

Предыдущее
От: Nabil Sayegh
Дата:
Сообщение: Re: Alter table add column ignores default
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Paths for C functions (was Re: Re: backend dies on 7.1.1 loading large datamodel.)