X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AB91A475AF8 for ; Mon, 31 Mar 2003 22:43:10 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E5DD847580B for ; Mon, 31 Mar 2003 22:43:01 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h313gj2L027718; Mon, 31 Mar 2003 22:42:45 -0500 (EST) To: "Josh Goldberg" Cc: "postgres-admin" Subject: Re: lost tables In-reply-to: <069801c2f7c3$5e33c650$6e02a8c0@4dmatrix.com> References: <04c601c2f4d4$16f90da0$6e02a8c0@4dmatrix.com> <069801c2f7c3$5e33c650$6e02a8c0@4dmatrix.com> Comments: In-reply-to "Josh Goldberg" message dated "Mon, 31 Mar 2003 12:23:18 -0800" Date: Mon, 31 Mar 2003 22:42:44 -0500 Message-ID: <27717.1049168564@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/515 X-Sequence-Number: 8155 "Josh Goldberg" 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