Re: Space for pg_dump - Mailing list pgsql-general

From Greg Smith
Subject Re: Space for pg_dump
Date
Msg-id alpine.GSO.2.01.0905140200140.17861@westnet.com
Whole thread Raw
In response to Re: Space for pg_dump  (Jan Otto <asche@me.com>)
List pgsql-general
On Mon, 20 Apr 2009, Jan Otto wrote:

> If you have big toast tables you get wrong results with the query suggested
> at http://wiki.postgresql.org/wiki/Disk_Usage because it takes the toasted
> values not into account.

I can't recall why I wrote that to filter out things in the pg_toast
namespace in the first place.  I just took the easy way out here--the
query has been updated to not exclude relations in that namespace anymore
and I link to the TOAST docs for more details.

I consider combining all the values together, as you did in your example
code and as pg_total_relation_size does, as a different type of report.
Accordingly, I just updated with examples of both types, as well as
something to work against pre-8.1 databases.

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

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Connections Crashing
Next
From: Philipp Marek
Date:
Subject: Re: Btree indizes, FILLFACTOR, vacuum_freeze_min_age and CLUSTER