Skip site navigation (1) Skip section navigation (2)

Re: pgstattuple extension for indexes

From: satoshi nagayasu <nagayasus(at)nttdata(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, Bruce Momjian <bruce(at)momjian(dot)us>, ishii(at)sraoss(dot)co(dot)jp
Subject: Re: pgstattuple extension for indexes
Date: 2006-07-28 06:00:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Hi folks,

As I said on -PATCHES, I've been working on an utility to get
a b-tree index information. I'm happy to introduce
my new functions to you.

pgstattuple module provides a `pgstatindex()`, and other small
functions, which allow you to get b-tree internal information.
I believe this module will be helpful to know b-tree index deeply.

So please try it, send comment to me, and have fun.

NAGAYASU Satoshi <nagayasus(at)nttdata(dot)co(dot)jp>

pgbench=# \x
Expanded display is on.
pgbench=# SELECT * FROM pgstatindex('accounts_pkey');
-[ RECORD 1 ]------+--------
version            | 2
tree_level         | 1
index_size         | 3588096
root_block_no      | 3
internal_pages     | 0
leaf_pages         | 437
empty_pages        | 0
deleted_pages      | 0
avg_leaf_density   | 59.5
leaf_fragmentation | 49.89

Attachment: pgstatindex.tar.gz
Description: application/x-gzip (5.9 KB)

In response to


pgsql-hackers by date

Next:From: Peter EisentrautDate: 2006-07-28 07:07:05
Subject: Re: GUC with units, details
Previous:From: Michael GlaesemannDate: 2006-07-28 04:49:46
Subject: Re: [hackers-jp: 219] Re: postgresql-8.1.4文字セットサポート

pgsql-patches by date

Next:From: Susanne EbrechtDate: 2006-07-28 07:30:16
Subject: Re: extension for sql update
Previous:From: Alvaro HerreraDate: 2006-07-28 04:05:22
Subject: Re: The vacuum-ignore-vacuum patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group