dropping an unused sequence?

Поиск
Список
Период
Сортировка
От
Тема dropping an unused sequence?
Дата
Msg-id 028701c6100f$e6133490$0201a8c0@iwing
обсуждение исходный текст
Ответы Re: dropping an unused sequence?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
hi list

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:

ERROR:  cannot drop sequence kinos_normal_kn_k_id_seq because table
kinos_normal column kn_k_id requires it
HINT:  You may drop table kinoprogramm.kinos_normal column kn_k_id instead.

i know i may drop the field and recreate it, but this is very annoying as
views and foreign keys are already assigned to that particular field. is
there another way to drop the unused sequence?

thanks,
thomas



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

Предыдущее
От: "Luis Silva"
Дата:
Сообщение: Re: function problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dropping an unused sequence?