Re: sticky sequence

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: strk <strk(at)keybit(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: sticky sequence
Date: 2003-12-30 16:29:04
Message-ID: 23477.1072801744@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

strk <strk(at)keybit(dot)net> writes:
> I cannot get rid of a sequence:
> gis=# drop sequence geopol.geology_gid_seq;
> ERROR: cache lookup of relation 8511697 failed
> Yes, geology_gid_seq have been created as a consequence of a
> geology.gid attribute of type serial.
> And.. yes, I've removed the relation with a delete on pg_class.

Shame on you ;-)

> Where is this sequence-to-relation association stored so that
> i can clean it up ?

Most likely the complaint is because there's still a link from table to
sequence in pg_depend. Get rid of that pg_depend row and you should be
okay.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-12-30 16:33:36 Re: sticky sequence
Previous Message Tom Lane 2003-12-30 16:25:55 Re: Concurrence GiST