Le 12/10/2010 14:37, Thom Brown a écrit :
> On 12 October 2010 11:01, Timon <timosha(at)gmail(dot)com> wrote:
>> 2010/10/12 Guillaume Lelarge <guillaume(at)lelarge(dot)info>:
>>> Le 12/10/2010 11:47, Thom Brown a écrit :
>>>> On 12 October 2010 10:29, Timon <timosha(at)gmail(dot)com> wrote:
>>>>> see attachment.
>>>>> Last column on table shows index size, but 227MB - is table size.
>>>>> postgresql 8.4.4
>>>>> pgadmin 1.13 last dev build from git
>>>> I can confirm this using pgAdmin ... weird special version Dave gave
>>>> me last week ... against PostgreSQL 8.3.1, and PostgreSQL 9.0.0.
>>> I don't think we changed anything in this area. So you should have the
>>> same issue with 1.12.
>> yes, I have this issue with 1.12.
> Looks like it's getting the OID of the table the index is associated
> with rather than just using the indexrelid column from
You're right. Not sure what I was thinking when I applied this on 1.12.
Quick patch (not yet checked):
diff --git a/pgadmin/schema/pgIndex.cpp b/pgadmin/schema/pgIndex.cpp
index e55daf3..4c2fa23 100644
@@ -374,7 +374,7 @@ void pgIndexBase::ShowStatistics(frmMain *form,
wxT(", idx_blks_hit AS ") + qtIdent(_("Index Blocks Hit"));
- sql += wxT(", pg_size_pretty(pg_relation_size(") + GetOidStr()
+ sql += wxT(", pg_size_pretty(pg_relation_size(indexrelid)) AS
") + qtId
If you want to test, it's all yours. Will check tonight and apply if
In response to
pgadmin-hackers by date
|Next:||From: Thom Brown||Date: 2010-10-12 15:22:00|
|Subject: Re: wrong indexes sizes on index page|
|Previous:||From: Devrim GÜNDÜZ||Date: 2010-10-12 14:57:03|
|Subject: Re: [pgadmin-support] pgAdmin v1.12.0 Released|