Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tljc0-00009M-86 for pgsql-admin@arkaria.postgresql.org; Thu, 20 Dec 2012 17:08:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tljbz-0000LR-OA for pgsql-admin@arkaria.postgresql.org; Thu, 20 Dec 2012 17:08:47 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tljby-0000KJ-7z for pgsql-admin@postgresql.org; Thu, 20 Dec 2012 17:08:46 +0000 Received: from mx0.network-studio.com ([62.93.225.99]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tljbx-0005Eu-3j for pgsql-admin@postgresql.org; Thu, 20 Dec 2012 17:08:45 +0000 Received: from zimbra-ne01.network-studio.com (zimbra-admin.network-studio.com [192.168.101.80]) by mx0.network-studio.com (Postfix) with ESMTP id 96B30408054; Thu, 20 Dec 2012 18:08:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra-ne01.network-studio.com (Postfix) with ESMTP id 91338DA1EE9; Thu, 20 Dec 2012 18:08:43 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra-ne01.network-studio.com Received: from zimbra-ne01.network-studio.com ([127.0.0.1]) by localhost (zimbra-ne01.network-studio.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zutDJ0u3Rn-u; Thu, 20 Dec 2012 18:08:43 +0100 (CET) Received: from zimbra-ne01.network-studio.com (zimbra-ne01.network-studio.com [192.168.101.80]) by zimbra-ne01.network-studio.com (Postfix) with ESMTP id 457D8DA1AA5; Thu, 20 Dec 2012 18:08:43 +0100 (CET) Date: Thu, 20 Dec 2012 18:08:43 +0100 (CET) From: Baptiste LHOSTE To: Kevin Grittner Cc: pgsql-admin@postgresql.org, Sylvain CAILLET Message-ID: <74151148.2709769.1356023323230.JavaMail.root@alaloop.com> In-Reply-To: <20121220164208.14700@gmx.com> Subject: Re: Autovacuum issues with truncate and create index ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.101.82] X-Mailer: Zimbra 7.2.1_GA_2790 (ZimbraWebClient - GC23 (Linux)/7.2.1_GA_2790) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org > Was the blocking you described occurring at the time you captured > this? It doesn't seem to be showing any problem. Yes indeed. We have noticed that any process seems to be in waiting situation but : - before the autovacuum process starts to work on the both kind of tables, truncate and index creation take less than 2 seconds - after the autovacuum process starts to work on the both kind of tables, truncate and index creation never end We have to stop our process, then reset the autovacuum thresold for second kind of tables, then restart our process. Is it possible that the fact that statistics of postgresql are not up-to-date could explain this behavior ? Is it possible that the autovacuum process does not stop itself when we perform a truncate or a create index ? > A minor release (where the version number doesn't change before the > second dot) never requires a dump and restore. There is sometimes a > need to do some cleanup work; for example, if a bug is fixed which > could corrupt a particular type of index, the release notes may > recommend rebuilding all indexes of that type to repair any damage > which may have occurred before the bug was fixed. As we mention in the previous mail, we can only upgrade to the 8.4.13 with Debian. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin