Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCWe1-0006Ti-L1 for pgsql-performance@arkaria.postgresql.org; Sun, 09 Feb 2014 15:50:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WCWe1-0002K0-0u for pgsql-performance@arkaria.postgresql.org; Sun, 09 Feb 2014 15:50:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCWdz-0002JB-RT for pgsql-performance@postgresql.org; Sun, 09 Feb 2014 15:50:07 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCWdx-0008F5-Ba for pgsql-performance@postgresql.org; Sun, 09 Feb 2014 15:50:07 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id 78244508D88 for ; Sun, 9 Feb 2014 16:50:04 +0100 (CET) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.29.194]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id kfoeOaZ-uXKs for ; Sun, 9 Feb 2014 16:50:13 +0100 (CET) Received: from [192.168.1.227] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tv@fuzzy.cz) by mail.gransy.com (Postfix) with ESMTPSA id 1596A508D50 for ; Sun, 9 Feb 2014 16:50:04 +0100 (CET) Message-ID: <52F7A3AC.2090905@fuzzy.cz> Date: Sun, 09 Feb 2014 16:50:04 +0100 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Bloated tables and why is vacuum full the only option References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 On 7.2.2014 19:47, Claudio Freire wrote: > > Question is... why isn't all that free space being used? The table > grows in size even though there's plenty (65%) of free space. > > I've got autovacuum severely crippled and that could be a reason, but > I do perform regular vacuum runs weekly that always run to completion. > I also do routine reindexing to stop index bloat on its tracks, yet > freshly-reindexed indexes get considerably reduced in size with vacuum > full. Are you logging autovacuum actions? I.e. what is log_autovacuum_min_duration set to? It it's set to -1 you won't get any messages because of conflicting locks or stuff like that, which might be the culprit here. Also, when you're running the weekly VACUUM, do VACUUM (VERBOSE) and post it here. That might at least help us eliminate some of the usual suspects. regards Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance