Re: Postgresql performance degrading... how to diagnose the root cause

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: Franck Routier <franck(dot)routier(at)axege(dot)com>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Postgresql performance degrading... how to diagnose the root cause
Date: 2013-03-30 00:02:55
Message-ID: m3a9pleouo.fsf@mnc.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Franck Routier <franck.routier 'at' axege.com> writes:

>> http://wiki.postgresql.org/wiki/Show_database_bloat
> How do I interpret the output of this query ? Is 1.1 bloat level on a
> table alarming, or quite ok ?

I am not very used to this, but I'd start by comparing the top
result in your established DB against the top result in your
fresh DB. What does it say? The wiki page says it is a loose
estimate, however, unusually larger tbloat and/or wastedbytes
might be an indication.

Of course, if you can afford it, a good old VACUUM FULL ANALYZE
VERBOSE would tell you how many pages were reclaimed while
rewriting the table. Otherwise, VACUUM VERBOSE on both the
established DB and a backup/restore on a fresh DB also provide a
helpful comparison of how many pages are used for suspected
tables.

--
Guillaume Cottenceau

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Cédric Villemain 2013-03-30 12:57:10 Re: Postgresql performance degrading... how to diagnose the root cause
Previous Message Jeff Janes 2013-03-29 23:23:58 Re: Postgresql performance degrading... how to diagnose the root cause