Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 02C1A2E0030 for ; Wed, 9 Apr 2008 08:08:57 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39235-02 for ; Wed, 9 Apr 2008 08:08:52 -0300 (ADT) X-Greylist: delayed 00:13:38.206942 by SQLgrey-1.7.5 Received: from mail.idealinter.net (mail.idealinter.net [72.242.8.4]) by developer.postgresql.org (Postfix) with ESMTP id 0A5142E0038 for ; Wed, 9 Apr 2008 08:08:53 -0300 (ADT) Received: from ken.idealinter.net (office.idealinter.net [72.242.8.123]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.idealinter.net (Postfix) with ESMTP id 1CB8B2E0BE for ; Wed, 9 Apr 2008 07:08:52 -0400 (EDT) Resent-To: pgsql-admin@postgresql.org Message-Id: <3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net> From: Ken Ebling To: pgsql-admin@postgresql.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Resent-Date: Wed, 9 Apr 2008 07:08:51 -0400 Resent-From: Ken Ebling Subject: Recovering records after running out of disk space Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 9 Apr 2008 06:55:11 -0400 X-Mailer: Apple Mail (2.919.2) Resent-Message-Id: <20080409110852.1CB8B2E0BE@mail.idealinter.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200804/86 X-Sequence-Number: 28850 Hello. I have a postgresql 8.2.4 server that ran low on disk space. I was seeing messages about some queries failing to run, and a hint about low disk space. I noticed that the largest table in the database was returning 0 rows, while other tables just seemed to be missing some rows. One was missing about 10,000 records. Running "SELECT relname, relpages FROM pg_class ORDER BY relpages DESC;" showed that the table with 0 rows is still the largest: relname | relpages -----------------------------------+---------- job_view_warehouse | 3013632 I moved the data directory to bigger drives, and ran "vacuum full" and "reindex database db_name" and "select count(*) ..." still shows that the table has 0 rows. Is there something else I should do to try to recover these records? I figure they must still be there somewhere if it's relpages is so big. Thanks in advance, Ken