Re: dropping an unused sequence?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: me(at)alternize(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: dropping an unused sequence?
Date: 2006-01-03 03:00:20
Message-ID: 7290.1136257220@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<me(at)alternize(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message me 2006-01-03 03:14:41 Re: dropping an unused sequence?
Previous Message me 2006-01-03 02:46:29 dropping an unused sequence?