Re: database size much bigger than tablespaces on filesystem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rob Audenaerde <Rob(dot)Audenaerde(at)Valuecare(dot)nl>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: database size much bigger than tablespaces on filesystem
Date: 2011-09-14 15:47:14
Message-ID: 904.1316015234@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rob Audenaerde <Rob(dot)Audenaerde(at)Valuecare(dot)nl> writes:
>>> I check te database size like this:
>>> select pg_size_pretty(pg_database_size('database'))
>>> 595 GB

>> You should also check the space held in $PGDATA/base.

> I did. It is only 320 MB.

Bizarre. Try breaking the results down table-by-table to see if you can
find where the discrepancy is.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Crawford 2011-09-14 15:48:07 Re: pg_upgrade difficulties
Previous Message Rob Audenaerde 2011-09-14 15:21:33 Re: database size much bigger than tablespaces on filesystem