Re: drop table problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: drop table problem
Дата
Msg-id 22821.1043443570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на drop table problem  ("frank_lupo" <frank_lupo@email.it>)
Список pgsql-general
"=?utf-8?Q?frank=5Flupo?=" <frank_lupo@email.it> writes:
> If create a table and alter column add sequence. The relation on table and =
> sequence is not present in pg_depend.

What are you doing, exactly?  ADD COLUMN foo SERIAL doesn't work yet.

regression=# alter table vv add column f2 serial;
NOTICE:  ALTER TABLE will create implicit sequence 'vv_f2_seq' for SERIAL column 'vv.f2'
ERROR:  Adding columns with defaults is not implemented.
        Add the column, then use ALTER TABLE SET DEFAULT.

SET DEFAULT nextval('foo') does not create an auto-drop dependency,
and should not IMHO.

            regards, tom lane

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Searchable 7.3.1 Documentation - now interactive!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: weird lower() problem with character