Re: Database size in specific metrics

Поиск
Список
Период
Сортировка
От Jean-Yves F. Barbier
Тема Re: Database size in specific metrics
Дата
Msg-id 20100901130104.19e2a359@anubis.defcon1
обсуждение исходный текст
Ответ на Re: Database size in specific metrics  (damien clochard <damien@dalibo.info>)
Список pgsql-novice
On Wed, 01 Sep 2010 12:35:02 +0200, damien clochard <damien@dalibo.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.

В списке pgsql-novice по дате отправления:

Предыдущее
От: damien clochard
Дата:
Сообщение: Re: Database size in specific metrics
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: Postgresql security checks