dropping an unused sequence?

From: <me(at)alternize(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: dropping an unused sequence?
Date: 2006-01-03 02:46:29
Message-ID: 028701c6100f$e6133490$0201a8c0@iwing
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-01-03 03:00:20 Re: dropping an unused sequence?
Previous Message Luis Silva 2006-01-02 15:23:39 Re: function problem