Re: dropping an unused sequence?

Поиск
Список
Период
Сортировка
От
Тема Re: dropping an unused sequence?
Дата
Msg-id 028c01c61013$d6ad6a30$0201a8c0@iwing
обсуждение исходный текст
Ответ на dropping an unused sequence?  (<me@alternize.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.

thanks. i'm using EMS SQL Manager 3. when creating a SERIAL data field, it
is shown as INTEGER afterwards with the "nextval(..)" default value. thats
how and why i was able to make it a "pure" integer ;-)

i'll fill a bug report at ems about this.

thanks for your fast help,
thomas



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

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