pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alejandro <ahmostovoi@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: Estimate physical index size
Date: Sun, 11 Sep 2011 15:57:08 -0300
Message-ID: <4E6D0484.2000201@gmail.com> (raw)
In-Reply-To: <4E6C91CD02000025000410C0@gw.wicourts.gov>
References: <4E6C91CD02000025000410C0@gw.wicourts.gov>

Kevin,
     thanks for reply.

     I need to estimate the entire database size (tables, indexes, 
etc.), prior to create it. I know how to calculate a table size, but I 
don't know how to calculate an index size.

Thanks.


Alejandro


On 11/09/11 12:47, Kevin Grittner wrote:
> Alejandro  wrote:
>
>> I need to know how to estimate physical index size. I can't find
>> any formulas in online documentation.
>
> For an existing index you probably want pg_relation_size():
>
> http://www.postgresql.org/docs/9.0/interactive/functions-admin.html#FUNCTIONS-ADMIN-DBSIZE
>
> -Kevin
>
>



view thread (3+ messages)

Message-ID: <4E6D0484.2000201@gmail.com>
Permalink:  ../4E6D0484.2000201@gmail.com/
Also on:    postgresql.org/message-id/4E6D0484.2000201@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ahmostovoi@gmail.com, Kevin.Grittner@wicourts.gov
  Subject: Re: Estimate physical index size
  In-Reply-To: <4E6D0484.2000201@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox