pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jose fuenmayor <jafn82@gmail.com>
To: Aldor <an@mediaroot.de>
To: pgsql-admin@postgresql.org
Subject: Re: Fwd: Indexes (Disk space)
Date: Wed, 24 Aug 2005 08:43:35 -0400
Message-ID: <69f2062a05082405432fd92c92@mail.gmail.com> (raw)
In-Reply-To: <430B7B76.1030009@mediaroot.de>
References: <69f2062a0508221037690f8d2b@mail.gmail.com>
	<69f2062a0508231101463f25b7@mail.gmail.com>
	<430B7B76.1030009@mediaroot.de>

Ok I understand but I need to know the size of the index before i create it
I need to know  how much space it will ocupy (before actually create
the index, having the information of the table on wich I will build
the index), is this possible?
thanks in advance to everyone that can help me.

On 8/23/05, Aldor <an@mediaroot.de> wrote:
> select * from pg_class;
> 
> or
> 
> select relname, relpages from pg_class where relname = '[index-name]';
> 
> the pages give you the information about the space the index uses, a
> page has 8kb.
> 
> [...]Every table and index is stored as an array of pages of a fixed
> size (usually 8Kb, although a different page size can be selected when
> compiling the server). In a table, all the pages are logically
> equivalent, so a particular item (row) can be stored in any page. In
> indexes, the first page is generally reserved as a metapage holding
> control information, and there may be different types of pages within
> the index, depending on the index access method. [...]
> 
> Source-URL:
> http://www.postgresql.org/docs/8.0/interactive/storage-page-layout.html
> 
> jose fuenmayor wrote:
> > ---------- Forwarded message ----------
> > From: jose fuenmayor <jafn82@gmail.com>
> > Date: Aug 22, 2005 1:37 PM
> > Subject: Indexes (Disk space)
> > To: pgsql-admin@postgresql.org
> >
> >
> > Hi all,
> > I have the following question.
> > Is there anyway for me to know how much space on disk will ocupy an
> > index, created in a determined row or rows of a table?, anything like
> > a rule, formula, calculation? that allow me to know in advance how
> > much space will the index use before actually created it.
> >
> > I aprecciate all the help you can give me
> >
> > Thanks in advance.
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: if posting/reading through Usenet, please send an appropriate
> >        subscribe-nomail command to majordomo@postgresql.org so that your
> >        message can get through to the mailing list cleanly
> >
>



view thread (6+ messages)  latest in thread

Message-ID: <69f2062a05082405432fd92c92@mail.gmail.com>
Permalink:  ../69f2062a05082405432fd92c92@mail.gmail.com/
Also on:    postgresql.org/message-id/69f2062a05082405432fd92c92@mail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jafn82@gmail.com, an@mediaroot.de
  Subject: Re: Fwd: Indexes (Disk space)
  In-Reply-To: <69f2062a05082405432fd92c92@mail.gmail.com>
  References: <69f2062a0508221037690f8d2b@mail.gmail.com> <69f2062a0508231101463f25b7@mail.gmail.com> <430B7B76.1030009@mediaroot.de> <69f2062a05082405432fd92c92@mail.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