pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@surnet.cl>
To: Eduardo Bezerra <edubezval@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: btree information
Date: Tue, 7 Jun 2005 15:57:43 -0400
Message-ID: <20050607195743.GC19846@surnet.cl> (raw)
In-Reply-To: <a0580c5105060710361cecf791@mail.gmail.com>
References: <a0580c5105060710361cecf791@mail.gmail.com>

On Tue, Jun 07, 2005 at 01:36:56PM -0400, Eduardo Bezerra wrote:
> hi all,
>  Someone can help me to find these data about btree index:
>   * height;
>  * maximum number of keys per block
>  * average number of keys per block
>  * number of leaf blocks
>  * average number of leaf blocks per total number of keys
>  * average number of data blocks per total number of keys

I guess what I'd do is run pg_filedump in an btree index file to find
out.  Leaf pages are marked with the BTP_LEAF flag.

Regarding the number of keys in a block, it's variable, depends on the
size of the keys.  You can find out for a particular index using
pg_filedump too.

-- 
Alvaro Herrera (<alvherre[a]surnet.cl>)
Jude: I wish humans laid eggs
Ringlord: Why would you want humans to lay eggs?
Jude: So I can eat them



view thread (4+ messages)  latest in thread

Message-ID: <20050607195743.GC19846@surnet.cl>
Permalink:  ../20050607195743.GC19846@surnet.cl/
Also on:    postgresql.org/message-id/20050607195743.GC19846@surnet.cl

 · 

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: alvherre@surnet.cl, edubezval@gmail.com
  Subject: Re: btree information
  In-Reply-To: <20050607195743.GC19846@surnet.cl>
  References: <a0580c5105060710361cecf791@mail.gmail.com> <20050607195743.GC19846@surnet.cl>

* 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