Re: Cache lookup failed for relation, when trying to DROP TABLE.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Gibson <gibsonm(at)cromwell(dot)co(dot)uk>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cache lookup failed for relation, when trying to DROP TABLE.
Date: 2004-10-06 15:10:30
Message-ID: 26266.1097075430@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Gibson <gibsonm(at)cromwell(dot)co(dot)uk> writes:
> I kept getting the following error:
> ERROR: cache lookup failed for relation 4667548

This implies that something someplace still has a link to the table with
that OID. You could do "\set VERBOSITY verbose" so that the code
location the error occurs at gets reported; that might be enough
information to guess what sort of thing is linking to the table.
Or you could just dig through the system catalogs looking for 4667548
in an OID column that links to pg_class.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben 2004-10-06 15:23:11 database constraints
Previous Message Mark Gibson 2004-10-06 15:09:22 Re: Commands to browse current connections and processes