size difference between du and PG_CLASS

From: "Lee Wu" <Lwu(at)mxlogic(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: size difference between du and PG_CLASS
Date: 2004-06-22 15:47:04
Message-ID: ECAB83AA52BCC043A0E24BBC0000102411126C@mxhq-exch.corp.mxlogic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All,

We have a big difference between du and PG_CLASS:

du -hs ./base/17613

21G ./base/17613

select sum(relpages)*8/1024/1024 from pg_class;

?column?

----------

11

(1 row)

I am sure I run the select under the right database (17613).

I know there are some files under:

du -hs base/17613/pgsql_tmp

1.7G base/17613/pgsql_tmp

But the difference is still around 8G (21G - 11G - 1.7G).

When I check timestamp on files under directory 17613, I found there are
many old relfilenode which do not exist

in the pg_class any more. We had bounced the PG server, those files are
still there.

Does PG remove those files which are not longer used by PG after server
bounce?

Which files can I safely delete?

Thanks,

PS: PG version 7.3.2 and OS version Red Hat Linux release 7.3 (Valhalla)

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Holden 2004-06-22 17:09:42 phpmyadmin type thing for postgre?
Previous Message juanmime 2004-06-22 14:32:18 Problems restoring a DB with oids