Received: from mail.greatbasin.net (mail.greatbasin.net [207.228.35.39]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3PHoP319191 for ; Wed, 25 Apr 2001 13:50:25 -0400 (EDT) (envelope-from jeremy@wellsgaming.com) Received: from [172.16.1.6] (rno-dsl0b-131.gbis.net [216.82.145.131]) by mail.greatbasin.net (8.9.3-MySQL-0.2.3b/8.9.3) with ESMTP id KAA04337; Wed, 25 Apr 2001 10:50:15 -0700 (PDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Wed, 25 Apr 2001 10:47:51 -0700 Subject: Re: Can't drop table (repost) From: Jeremy Buchmann To: Tom Lane CC: pgsql-admin Message-ID: In-Reply-To: <29752.988219840@sss.pgh.pa.us> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Archive-Number: 200104/129 X-Sequence-Number: 1266 > Jeremy Buchmann 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. Okay, cpcs=> select relname from pg_class where oid = '8892659'; relname --------------- pg_temp.29453.1 (1 row) So it is one of those temp tables...now if I delete those tables with the allow-system-table-mods switch, will that still correct the pg_inherits table so that the dependency no longer exists? Or can I remove that by hand, too? Thanks, -- Jeremy [jeremy@wellsgaming.com]