From: | Michal Taborsky - Internet Mall <michal(dot)taborsky(at)mall(dot)cz> |
---|---|
To: | Markus Schaber <schabi(at)logix-tt(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Identifying bloated tables |
Date: | 2006-08-28 15:56:08 |
Message-ID: | 44F31218.6040703@mall.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Markus Schaber napsal(a):
> Hi, Michal,
>
> Michal Taborsky - Internet Mall wrote:
>
>> When using this view, you are interested in tables, which have the
>> "bloat" column higher that say 2.0 (in freshly dump/restored/analyzed
>> database they should all be around 1.0).
>
> I just noticed some columns in pg_catalog with a bloat value <1 and a
> negative "wasted space" - is this due to the pseudo nature of them?
It is more likely due to the fact, that these numbers are just
estimates, based on collected table statistics, so for small or
non-standard tables the statistical error is greater that the actual
value. You are usually not interested in tables, which have wasted space
of 1000kB or -1000kB. Also the database must be ANALYZEd properly for
these numbers to carry any significance.
--
Michal Táborský
IT operations chief
Internet Mall, a.s.
Internet Mall - obchody, které si oblíbíte
<http://www.MALL.cz>
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2006-08-28 16:02:59 | Re: Benchmarks |
Previous Message | Markus Schaber | 2006-08-28 15:49:28 | Re: Identifying bloated tables |