Re: determining database size - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: determining database size
Date
Msg-id Pine.LNX.4.21.0204172059280.20382-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to determining database size  (Jeff Davis <list-pgsql-general@dynworks.com>)
List pgsql-general
On Wed, 17 Apr 2002, Jeff Davis wrote:

> I would just like to know how to determine the size of a database. The
> directories inside the data directory are numerical, so I can't associate
> them with a particular database or table.
>
> I would basically just like to create reports so I can determine how fast the
> disk usage is increasing.
>
> Any suggestions?

If you look at the relpages column in pg_class for the tables, etc. in your
database(s) I think you should be able to add up the storage used.

On a related note, sort of, I see in pg_database a column for datpath. Does
this indicate that we can move entire databases to other locations by changing
this field?


--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants


pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: determining database size
Next
From: Bruce Momjian
Date:
Subject: Re: select users in a group?