Re: pg_database_size() and actual disk space usage - Mailing list pgsql-admin

From Alexander Fortin
Subject Re: pg_database_size() and actual disk space usage
Date
Msg-id 4F758C45.3000704@gmail.com
Whole thread Raw
In response to Re: pg_database_size() and actual disk space usage  (Bernhard Schrader <bernhard.schrader@innogames.de>)
Responses Re: pg_database_size() and actual disk space usage  (Vladimir Rusinov <vladimir@greenmice.info>)
List pgsql-admin
On 3/30/12 12:14 PM, Bernhard Schrader wrote:
> i hope this will help you.

Thanks Bernhard, I'll check the thread right now. In the meanwhile I've
noticed this strange behavior too and I was already going to post it,
maybe it's related to what you're suggesting:

# df -h /var/lib/postgresql
Filesystem            Size  Used Avail Use% Mounted on
/dev/md_d0            128G   44G   85G  35% /var/lib/postgresql

# /etc/init.d/postgresql stop
 * Stopping PostgreSQL 9.1 database server
   ...done.

# df -h /var/lib/postgresql
Filesystem            Size  Used Avail Use% Mounted on
/dev/md_d0            128G   36G   93G  28% /var/lib/postgresql


so, with Postgres shut down, numbers get back to make sense to me.

--
Alexander Fortin
http://about.me/alexanderfortin/

pgsql-admin by date:

Previous
From: Bernhard Schrader
Date:
Subject: Re: pg_database_size() and actual disk space usage
Next
From: Vladimir Rusinov
Date:
Subject: Re: pg_database_size() and actual disk space usage