pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sander Steffann <steffann@nederland.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Less available diskspace after crashed CLUSTER
Date: Sat, 15 Jan 2005 23:48:33 +0100
Message-ID: <005601c4fb54$581d0ce0$64c8a8c0@balefirehome> (raw)
References: <003201c4fb14$b7377840$64c8a8c0@balefirehome>
	<10233.1105812077@sss.pgh.pa.us>
	<005001c4fb50$8ae67110$64c8a8c0@balefirehome>

Hi,

Sorry for replying to myself, but I had to point out that:

>> I'm guessing that the new table/index files created during the CLUSTER
>> didn't get released after the PANIC.  Look for files that are not
>> referenced by any relfilenode value in pg_class.
>
> Using the oid2name tool I get this:
> [...]
> I suspect all the files with "No tables with that oid found" can be 
> removed, but I don't know exactly how oid2name works, so I'll check them 
> against pg_class before removing them.

This is ofcourse not a good idea. There is quite a difference between the 
oid and the relfilenode. Comparing the output of:
 SELECT DISTINCT relfilenode FROM pg_class ORDER BY relfilenode;
to the directory listing gave a much better result.

The files I found in this way also had an atime which was the same as the 
time of the crash.

Just to prevent someone else from making the mistake I made in my previous 
message...

Thanks!
Sander.





view thread (4+ messages)

Message-ID: <005601c4fb54$581d0ce0$64c8a8c0@balefirehome>
Permalink:  ../005601c4fb54$581d0ce0$64c8a8c0@balefirehome/
Also on:    postgresql.org/message-id/005601c4fb54$581d0ce0$64c8a8c0@balefirehome

 · 

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: steffann@nederland.net, tgl@sss.pgh.pa.us
  Subject: Re: Less available diskspace after crashed CLUSTER
  In-Reply-To: <005601c4fb54$581d0ce0$64c8a8c0@balefirehome>
  References: <003201c4fb14$b7377840$64c8a8c0@balefirehome> <10233.1105812077@sss.pgh.pa.us> <005001c4fb50$8ae67110$64c8a8c0@balefirehome> <005601c4fb54$581d0ce0$64c8a8c0@balefirehome>

* 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