Re: sticky sequence - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: sticky sequence
Date
Msg-id 3FF1A8E0.9010207@familyhealth.com.au
Whole thread Raw
In response to sticky sequence  (strk <strk@keybit.net>)
List pgsql-hackers
> 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.
> Where is this sequence-to-relation association stored so that
> i can clean it up ?

It's stored in the pg_depend table.  See here:

http://www.postgresql.org/docs/current/static/catalog-pg-depend.html

A really good reason to disable manual catalog modifications by default :)

Chris



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: sticky sequence
Next
From: Christopher Kings-Lynne
Date:
Subject: Objects in schemas question