Re: Space for pg_dump

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jan Otto <asche(at)me(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Rainer Bauer <usenet(at)munnin(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Space for pg_dump
Date: 2009-04-20 17:35:37
Message-ID: 20090420173537.GD10358@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

> Now a fixed query which gets the sizes of the related pg_toast_oid and
> pg_toast_oid_index too:

Note that there is also the pg_total_relation_size function which will
report the total table size, including toast table and indexes.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Otto 2009-04-20 17:39:34 Re: Space for pg_dump
Previous Message Jan Otto 2009-04-20 17:27:35 Re: Space for pg_dump