Re: Postgres Database size

From: "Tomi N/A" <hefest(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Database size
Date: 2007-03-17 23:12:11
Message-ID: d487eb8e0703171612r406c9f1at2ba60716161e381@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

For small and moderate size databases, I find that the simplest way to
estimate the database size is to do:

du -ks /var/lib/postgresql/data
...create a new database, restore a backup of the database in whose
size you're interested in
du -ks /var/lib/postgresql/data

Compare the first and second "du" output and you get possibly the
exact size of the database.

Cheers,
t.n.a.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christian Schröder 2007-03-18 00:07:11 Re: issue with SELECT settval(..);
Previous Message louis gonzales 2007-03-17 22:37:05 Re: Practical question.