Re: oids on disk not in pg_class - Mailing list pgsql-general

From Steve Atkins
Subject Re: oids on disk not in pg_class
Date
Msg-id D85E1E03-25A8-43A8-8D96-436DCEF56D87@blighty.com
Whole thread Raw
In response to oids on disk not in pg_class  (Guy Rouillier <guy.rouillier@gmail.com>)
Responses Re: oids on disk not in pg_class  (Guy Rouillier <guy.rouillier@gmail.com>)
List pgsql-general
On Oct 7, 2013, at 2:48 PM, Guy Rouillier <guy.rouillier@gmail.com> wrote:

> We have a fairly large (1 TB) database we put on all SSDs because of a very high insert and update rate ().  As our
businesshas grown, we've been running into space constraints, so we went looking for files we might be able to delete. 
>
> We found a large number (662 out of 1465 total ) and size (219 GB) of files in the data directory whose name does not
correspondto an oid in the pg_class system catalog table.  That amount of space would address our current space
constraintproblems.  Some of these tables are recent (from today), while others are quite old (large volume in August
andMay, with some smaller ones as far back as February. 

You need to be looking at pg_class.relfilenode, not pg_class.oid. They're often the same value, but often not.

Cheers,
  Steve



pgsql-general by date:

Previous
From: Guy Rouillier
Date:
Subject: oids on disk not in pg_class
Next
From: Adrian Klaver
Date:
Subject: Re: Altering parent table breaks child table defaults