pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Ebling <ken@idealinter.net>
To: pgsql-admin@postgresql.org
Subject: Recovering records after running out of disk space
Date: Wed, 9 Apr 2008 06:55:11 -0400
Message-ID: <3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net> (raw)

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






Message-ID: <3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net>
Permalink:  ../3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net/
Also on:    postgresql.org/message-id/3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net

 · 

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: ken@idealinter.net
  Subject: Re: Recovering records after running out of disk space
  In-Reply-To: <3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net>
  References: <3DDBD50A-119F-477B-B6A4-D31ACC5C49E2@idealinter.net>

* 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