Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2D46B9FB775 for ; Fri, 25 May 2007 08:00:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 79707-01 for ; Fri, 25 May 2007 08:00:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id A92C59FB769 for ; Fri, 25 May 2007 08:00:25 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C24D476170; Fri, 25 May 2007 12:00:23 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 03C6F2740EB; Fri, 25 May 2007 12:00:26 +0100 (BST) Message-ID: <4656C1C7.3000003@archonet.com> Date: Fri, 25 May 2007 12:00:23 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Bastian Voigt Cc: pgsql-performance@postgresql.org Subject: Re: Performance Problem with Vacuum of bytea table (PG 8.0.13) References: <46569E6A.2060509@bastian-voigt.de> <4656BB5E.3000109@archonet.com> <4656BEF1.4050609@bastian-voigt.de> In-Reply-To: <4656BEF1.4050609@bastian-voigt.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/493 X-Sequence-Number: 24883 Bastian Voigt wrote: > > OK, I'll give that a try. What about pg_autovacuum then? Is it a problem > when two processes try to vacuum the same table in parallel? Or do I > need to deactivate autovacuum altogether? I was about to say that you can tune pg_autovacuum, but I just checked your original post and you're running 8.0.x - not sure about that one. You'll have to check the documentation for that version to see if you can either: 1. exclude that table from pg_autovacuum 2. increase pg_autovacuum's sensitivity If not, and this table is the most active, it might be simpler just to run your own vacuum-ing from a cron job. -- Richard Huxton Archonet Ltd