Re: Detemine database size on Postgres 8.0 - Mailing list pgsql-general

From Greg Smith
Subject Re: Detemine database size on Postgres 8.0
Date
Msg-id Pine.GSO.4.64.0903021901550.5550@westnet.com
Whole thread Raw
In response to Re: Detemine database size on Postgres 8.0  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
On Mon, 2 Mar 2009, Scott Marlowe wrote:

> Back in the olden days when I was on 8.0 I would just use du -sh to find
> out. and match them up.  yeah, I had a script that made it prettier but
> that worked fine.

Not sure what version I started using this trick on:

SELECT relfilenode, relpages * 8 AS kb FROM pg_class;

But that might have been 8.0.

There is an example of a script like you describe on starting on P88 of
Bruce's presentation at

http://momjian.us/main/writings/pgsql/administration.pdf

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: How to pipe the psql copy command to Unix 'Date' command
Next
From: Alan Hodgson
Date:
Subject: Re: How to pipe the psql copy command to Unix 'Date' command