pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Can't drop table (repost)
Date: Wed, 25 Apr 2001 10:47:51 -0700
Message-ID: <B70C5BD6.2A16%jeremy@wellsgaming.com> (raw)
In-Reply-To: <29752.988219840@sss.pgh.pa.us>

> 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.

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]




view thread (6+ messages)  latest in thread

Message-ID: <B70C5BD6.2A16%jeremy@wellsgaming.com>
Permalink:  ../B70C5BD6.2A16%25jeremy@wellsgaming.com/
Also on:    postgresql.org/message-id/B70C5BD6.2A16%jeremy@wellsgaming.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jeremy@wellsgaming.com, tgl@sss.pgh.pa.us
  Subject: Re: Can't drop table (repost)
  In-Reply-To: <B70C5BD6.2A16%jeremy@wellsgaming.com>
  References: <29752.988219840@sss.pgh.pa.us> <B70C5BD6.2A16%jeremy@wellsgaming.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox