pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Goldberg <josh@4dmatrix.com>
Cc: postgres-admin <pgsql-admin@postgresql.org>
Subject: Re: lost tables
Date: Mon, 31 Mar 2003 22:42:44 -0500
Message-ID: <27717.1049168564@sss.pgh.pa.us> (raw)
In-Reply-To: <069801c2f7c3$5e33c650$6e02a8c0@4dmatrix.com>
References: <04c601c2f4d4$16f90da0$6e02a8c0@4dmatrix.com>
	<069801c2f7c3$5e33c650$6e02a8c0@4dmatrix.com>

"Josh Goldberg" <josh@4dmatrix.com> writes:
>   I moved a few frequently used tables to a separate drive/partition with a=
>  symlink to my real data dir.  Thank you Murphy, my other drive died yester=
> day and I hadn't been making backups of those tables.  Now I have my db bac=
> k up and running but those tables are hosed.  I can't drop them using DROP =
> TABLE, and I can't do a pg_dump anymore either.  everything complains about=
>  pg_toast_xxxxxxxxxx where xxxxxxxx is the filename of the table.  How do I=
>  clean this up so I can rebuild the tables?

Can't tell without more details.  What's the *exact* error message you
get from a DROP TABLE?  Also it'd be useful to see the pg_class rows
for the problem tables ("select oid,* from pg_class where relname = 'xxx'")

			regards, tom lane




view thread (5+ messages)  latest in thread

Message-ID: <27717.1049168564@sss.pgh.pa.us>
Permalink:  ../27717.1049168564@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27717.1049168564@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, josh@4dmatrix.com
  Subject: Re: lost tables
  In-Reply-To: <27717.1049168564@sss.pgh.pa.us>
  References: <04c601c2f4d4$16f90da0$6e02a8c0@4dmatrix.com> <069801c2f7c3$5e33c650$6e02a8c0@4dmatrix.com> <27717.1049168564@sss.pgh.pa.us>

* 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