Re: Difference in the size of database size and relations

From: bricklen <bricklen(at)gmail(dot)com>
To: Luis <luisico(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Difference in the size of database size and relations
Date: 2013-12-10 14:04:33
Message-ID: CAGrpgQ_fr_4m48fSP5rB=aKUFgMPHrvVC-zv8=1z_3qh791ncg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Dec 10, 2013 at 4:43 AM, Luis <luisico(at)gmail(dot)com> wrote:

> Actually the query I used to get the relations sizes also included
> indexes and even pg_toast.
>

Your query appears to be using "pg_relation_size()", try it again with
"pg_total_relation_size()" to include indexes and toast tables.

Specifics can be found at:
http://www.postgresql.org/docs/current/static/functions-admin.html

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Luis 2013-12-10 14:09:42 Re: Difference in the size of database size and relations
Previous Message Luis 2013-12-10 12:43:44 Re: Difference in the size of database size and relations