From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Satoshi Nagayasu <nagayasus(at)nttdata(dot)co(dot)jp> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstattuple extension for indexes |
Date: | 2006-08-18 02:05:36 |
Message-ID: | 20060818104047.555A.ITAGAKI.TAKAHIRO@oss.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Satoshi Nagayasu <nagayasus(at)nttdata(dot)co(dot)jp> wrote:
> > I hope you to write how to interpret the framgentation (and other) info
> > in README. In my understanding, I'll write "You'd better do REINDEX when
> > you see the fragmentation is greater than 50%" under the present
> > calculation method.
>
> I can't understand why you want to make such decision, because you're
> thinking the fragmentation information is not the most important for
> the users, aren't you?
Suppose a simple update case, for example, the accounts table in pgbench.
The default fillfactor of btree indexes is 90%, so the leaf pages are
fully split after we update 10-20% of tuples. But pgstatindex reports
the fragmentation is 50% in such condition, but I think we should do
REINDEX then. My decision came from this.
The setting fillfactor=50% is better than the case with high fillfactor
but all pages have split once, even if sizes of the indexes are same.
I worry that users will misunderstand the 50% of fragmentation -- if the
report says 100%, they'll consider to do REINDEX. But 50%, the necessity
is unclear.
Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Satoshi Nagayasu | 2006-08-18 02:31:59 | Re: pgstattuple extension for indexes |
Previous Message | Satoshi Nagayasu | 2006-08-18 01:38:13 | Re: pgstattuple extension for indexes |
From | Date | Subject | |
---|---|---|---|
Next Message | Satoshi Nagayasu | 2006-08-18 02:31:59 | Re: pgstattuple extension for indexes |
Previous Message | Satoshi Nagayasu | 2006-08-18 01:38:13 | Re: pgstattuple extension for indexes |