Re: drop table cascade doesn't drop manual sequences

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: drop table cascade doesn't drop manual sequences
Дата
Msg-id 28684.1192378480@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: drop table cascade doesn't drop manual sequences  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: drop table cascade doesn't drop manual sequences  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> On 10/10/07, Guilherme <antoniolo@gmail.com> wrote:
>> If I insert a sequence later on table creation with alter table, drop
>> table cascade simply doesn't drop this sequence even when I specify
>> CASCADE.

> This is normal.

In 8.2 and up you can use ALTER SEQUENCE ... OWNED BY ... to establish a
link that will make a manually created sequence go away when its "owner"
column is dropped.  In 8.1 that aspect of SERIAL is hidden magic :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Aggregate View and Conditions taking FOREVER
Следующее
От: novnov
Дата:
Сообщение: What encoding to use for English, French, Spanish