Re: Can't drop table (repost) - Mailing list pgsql-admin

From Tom Lane
Subject Re: Can't drop table (repost)
Date
Msg-id 29752.988219840@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can't drop table (repost)  (Jeremy Buchmann <jeremy@wellsgaming.com>)
Responses Re: Can't drop table (repost)  (Jeremy Buchmann <jeremy@wellsgaming.com>)
List pgsql-admin
Jeremy Buchmann <jeremy@wellsgaming.com> writes:
> Okay great, but how do I know what tables I need to drop if it just gives me
> a number?  That 'xxxxxxx' is just some number like '8892659'.  Where is the
> mapping from number->name?

select relname from pg_class where oid = '8892659';

More recent versions do provide the relation name instead of number
in that error message, btw.

            regards, tom lane

pgsql-admin by date:

Previous
From: Jeremy Buchmann
Date:
Subject: Re: Can't drop table (repost)
Next
From: Joel Burton
Date:
Subject: Re: Reason to not upgrade from 6.5 to 7.0 or above