pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedbtree information
4+ messages / 2 participants
[nested] [flat]
* btree information
@ 2005-06-07 17:36 Eduardo Bezerra <edubezval@gmail.com>
2005-06-07 19:57 ` Re: btree information Alvaro Herrera <alvherre@surnet.cl>
0 siblings, 1 reply; 4+ messages in thread
From: Eduardo Bezerra @ 2005-06-07 17:36 UTC (permalink / raw)
To: pgsql-admin
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
--
Eduardo Bezerra Valentin
Bacharelado em Ciência da Computação - DCC - UFAM
Laboratório de VoIP - GRSD - UFAM
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: btree information
2005-06-07 17:36 btree information Eduardo Bezerra <edubezval@gmail.com>
@ 2005-06-07 19:57 ` Alvaro Herrera <alvherre@surnet.cl>
2005-06-08 13:04 ` Re: btree information Eduardo Bezerra <edubezval@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Herrera @ 2005-06-07 19:57 UTC (permalink / raw)
To: Eduardo Bezerra <edubezval@gmail.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: btree information
2005-06-07 17:36 btree information Eduardo Bezerra <edubezval@gmail.com>
2005-06-07 19:57 ` Re: btree information Alvaro Herrera <alvherre@surnet.cl>
@ 2005-06-08 13:04 ` Eduardo Bezerra <edubezval@gmail.com>
2005-06-08 13:29 ` Re: btree information Alvaro Herrera <alvherre@surnet.cl>
0 siblings, 1 reply; 4+ messages in thread
From: Eduardo Bezerra @ 2005-06-08 13:04 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@surnet.cl>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: btree information
2005-06-07 17:36 btree information Eduardo Bezerra <edubezval@gmail.com>
2005-06-07 19:57 ` Re: btree information Alvaro Herrera <alvherre@surnet.cl>
2005-06-08 13:04 ` Re: btree information Eduardo Bezerra <edubezval@gmail.com>
@ 2005-06-08 13:29 ` Alvaro Herrera <alvherre@surnet.cl>
0 siblings, 0 replies; 4+ messages in thread
From: Alvaro Herrera @ 2005-06-08 13:29 UTC (permalink / raw)
To: Eduardo Bezerra <edubezval@gmail.com>; +Cc: pgsql-admin
On Wed, Jun 08, 2005 at 07:04:17AM -0600, Eduardo Bezerra wrote:
> Sorry,
>
> But, where can I find out this utility? Is it pg_dump?
No, see in http://sources.redhat.com/rhdb or thereabouts (maybe
http://sources.redhat.com/RHDB even, not sure)
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"Puedes vivir solo una vez, pero si lo haces bien, una vez es suficiente"
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-06-08 13:29 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-07 17:36 btree information Eduardo Bezerra <edubezval@gmail.com>
2005-06-07 19:57 ` Alvaro Herrera <alvherre@surnet.cl>
2005-06-08 13:04 ` Eduardo Bezerra <edubezval@gmail.com>
2005-06-08 13:29 ` Alvaro Herrera <alvherre@surnet.cl>
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