Re: Postgres Database size - Mailing list pgsql-general

From Tomi N/A
Subject Re: Postgres Database size
Date
Msg-id d487eb8e0703171612r406c9f1at2ba60716161e381@mail.gmail.com
Whole thread Raw
In response to Re: Postgres Database size  (Tino Wildenhain <tino@wildenhain.de>)
List 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.

pgsql-general by date:

Previous
From: louis gonzales
Date:
Subject: Re: Practical question.
Next
From: Christian Schröder
Date:
Subject: Re: issue with SELECT settval(..);