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

Sorry,

But, where can I find out this utility? Is it pg_dump?

2005/6/7, Alvaro Herrera <alvherre@surnet.cl>:
> 
> 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
> 



-- 
Eduardo Bezerra Valentin
Bacharelado em Ciência da Computação - DCC - UFAM
Laboratório de VoIP - GRSD - UFAM

view thread (4+ messages)  latest in thread

Message-ID: <a0580c51050608060485af316@mail.gmail.com>
Permalink:  ../a0580c51050608060485af316@mail.gmail.com/
Also on:    postgresql.org/message-id/a0580c51050608060485af316@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: edubezval@gmail.com, alvherre@surnet.cl
  Subject: Re: btree information
  In-Reply-To: <a0580c51050608060485af316@mail.gmail.com>
  References: <a0580c5105060710361cecf791@mail.gmail.com> <20050607195743.GC19846@surnet.cl> <a0580c51050608060485af316@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