Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULjGD-0000jk-JR for pgsql-performance@arkaria.postgresql.org; Sat, 30 Mar 2013 00:03:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ULjGC-0003IC-TN for pgsql-performance@arkaria.postgresql.org; Sat, 30 Mar 2013 00:03:04 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULjGC-0003I7-0t for pgsql-performance@postgresql.org; Sat, 30 Mar 2013 00:03:04 +0000 Received: from 62-2-77-205.static.cablecom.ch ([62.2.77.205] helo=mail.mnc.ch) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULjG9-0001bD-0R for pgsql-performance@postgresql.org; Sat, 30 Mar 2013 00:03:03 +0000 Received: from localhost (kolab.op.lan [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 8E73165DC4; Sat, 30 Mar 2013 01:02:57 +0100 (CET) X-Virus-Scanned: by amavisd-new at mnc.ch Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.mnc.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EphrblodVmkG; Sat, 30 Mar 2013 01:02:57 +0100 (CET) Received: from localhost (kolab.op.lan [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id EEF9A66726; Sat, 30 Mar 2013 01:02:56 +0100 (CET) Received: from lmeuh2.localdomain (16-183.199-178.cust.bluewin.ch [178.199.183.16]) (Authenticated sender: gc@mnc.ch) by mail.mnc.ch (Postfix) with ESMTP id C8C6065DC4; Sat, 30 Mar 2013 01:02:56 +0100 (CET) Received: by lmeuh2.localdomain (Postfix, from userid 500) id 00871280BCD; Sat, 30 Mar 2013 01:02:55 +0100 (CET) From: Guillaume Cottenceau To: Franck Routier Cc: postgres performance list Subject: Re: Postgresql performance degrading... how to diagnose the root cause References: <5155A33A.4090000@axege.com> <5155B3BB.4080209@axege.com> Date: Sat, 30 Mar 2013 01:02:55 +0100 In-Reply-To: <5155B3BB.4080209@axege.com> (Franck Routier's message of "Fri, 29 Mar 2013 16:31:07 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Franck Routier 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 -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance