Re: adding columns with defaults is not implemented

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: adding columns with defaults is not implemented
Дата
Msg-id 1117745000.5758.31.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на adding columns with defaults is not implemented  ("Marcelo" <marcelo@humano2.com>)
Список pgsql-general
On Thu, 2005-06-02 at 15:29, Marcelo wrote:
> Hello,
> Using Postgres 7.4, I am trying to perform an "alter table
> temptable add column "myCol" serial"
>
> It gives the following msg
> ERROR:  adding columns with defaults is not implemented
>
> You cannot add a column that is serial in a table which already has
> data in postgres 7.
>
> Is there a way I can create a serial column on a table which already
> has data? Or is the only solution upgrading to postgres 8 ?

You can add a default after you add the column with a separate alter
table statement...

В списке pgsql-general по дате отправления:

Предыдущее
От: "Marcelo"
Дата:
Сообщение: adding columns with defaults is not implemented
Следующее
От: "David Parker"
Дата:
Сообщение: SQL call to get pid of current connection