Re: dropping an unused sequence?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dropping an unused sequence?
Дата
Msg-id 7290.1136257220@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dropping an unused sequence?  (<me@alternize.com>)
Ответы Re: dropping an unused sequence?  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-novice
<me@alternize.com> writes:
> during table creation i mistakenly had a SERIAL instead of INTEGER type for
> a value. i removed the default value (nextval....) for this field. still i
> can't drop the old sequence:

Ideally, SERIAL would prevent you from munging the default expression,
too.  What you are doing represents unwarranted tampering with the
implementation of a data type...

Having said that, if you remove the relevant entry in pg_depend then
you'll be able to drop the sequence.

            regards, tom lane

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

Предыдущее
От:
Дата:
Сообщение: dropping an unused sequence?
Следующее
От:
Дата:
Сообщение: Re: dropping an unused sequence?