Re: monitoring fragmentation

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Kasia Tuszynska <ktuszynska(at)esri(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: monitoring fragmentation
Date: 2008-01-31 00:52:34
Message-ID: 47A11BD2.6070908@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Kasia Tuszynska wrote:
> I am searching for a pg_xxxxx view that would allow me to view the
> properties of an index.
> - the fillfactor it was created with

Catalog pg_class, column reloptions.

> - the amount of free space on a page(s) storing the index ( assuming
> that it was created with a fillfactor and the index has incurred updates
> since the creation taking up some space reserved by the fillfactor
> during the load).
>
> The usage of a fillfactor nor fragmentation info does not get displayed
> in pgAdminIII.

Fillfactor information is available with pgAdmin III 1.8.

In SQL Server 2005 the analogous views would be:
> Obcc showcontig and sys.dm_index_physical_stats
>
> Perhaps there is another way to determine fragmentation of indexes in
> Postgres, any hint would be much appreciated.
>

Try pgstattuple module contrib. See
http://www.postgresql.org/docs/8.3/static/pgstattuple.html for more
informations.

Regards.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chander Ganesan 2008-01-31 12:21:37 Re: [GENERAL] Backup
Previous Message Kasia Tuszynska 2008-01-30 18:33:13 monitoring fragmentation

Browse pgsql-general by date

  From Date Subject
Next Message Peter Wilson 2008-01-31 00:55:28 Re: Is PostGreSql's Data storage mechanism "inferior"?
Previous Message Richard Broersma Jr 2008-01-31 00:22:47 Re: Is PostGreSql's Data storage mechanism "inferior"?