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: | 44C9A7F2.2010607@nttdata.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-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.
Thanks,
--
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 | Content-Type | Size |
---|---|---|
pgstatindex.tar.gz | application/x-gzip | 5.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-07-28 07:07:05 | Re: GUC with units, details |
Previous Message | Michael Glaesemann | 2006-07-28 04:49:46 | Re: [hackers-jp: 219] Re: postgresql-8.1.4文字セットサポート |
From | Date | Subject | |
---|---|---|---|
Next Message | Susanne Ebrecht | 2006-07-28 07:30:16 | Re: extension for sql update |
Previous Message | Alvaro Herrera | 2006-07-28 04:05:22 | Re: The vacuum-ignore-vacuum patch |