Re: Database size in specific metrics

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Database size in specific metrics
Date: 2010-09-01 11:01:04
Message-ID: 20100901130104.19e2a359@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 01 Sep 2010 12:35:02 +0200, damien clochard <damien(at)dalibo(dot)info>
wrote:

The results isn't exactly accurate, I tried it on my svr:

* your select: 12.0000
* du -sh /var/lib/..../<db_nb by oid2name>/: 13M

NOTE: du -sh gives the *theorical* (bytes) occupation on HD (don't take
care of disk blocks not entirely filled, so the *real* occupation
is usually >; might be ~13.5M)

> SELECT datname,
> pg_database_size(datname)::float/1024/1024
> FROM pg_database;

--
Q: Why don't lawyers go to the beach?
A: The cats keep trying to bury them.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Kupershmidt 2010-09-01 15:17:39 Re: Postgresql security checks
Previous Message damien clochard 2010-09-01 10:35:02 Re: Database size in specific metrics