Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C99361335B36 for ; Mon, 29 Nov 2010 14:53:56 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 43264-03 for ; Mon, 29 Nov 2010 18:53:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 9E13C1337B67 for ; Mon, 29 Nov 2010 14:53:49 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 3AEF7348023; Mon, 29 Nov 2010 10:53:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id adOZ9keaClXH; Mon, 29 Nov 2010 10:53:39 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.22.225]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 96C70348022; Mon, 29 Nov 2010 10:53:39 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A64816E4BE; Mon, 29 Nov 2010 15:53:36 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Heikki Linnakangas , depesz , Bala Murugan , pgsql-bugs Subject: Re: BUG #5774: VACCUM & REINDEX kills production environement From: Alvaro Herrera To: Balamurugan Mahendran In-reply-to: References: <201011280725.oAS7PqUN022602@wwwmaster.postgresql.org> <20101128162331.GA11758@depesz.com> <4CF3D57B.8040307@enterprisedb.com> Date: Mon, 29 Nov 2010 15:53:36 -0300 Message-Id: <1291056710-sup-3907@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/217 X-Sequence-Number: 28797 Excerpts from Balamurugan Mahendran's message of lun nov 29 13:48:43 -0300 2010: > Thanks, I'll remove it. But I still get down time because of Vacuum(table > lock). Is there any other better way to do this? I don't mind to switch to > bigger instance with more Hardware. I wonder if you're doing something other than INSERT/UPDATE/DELETE that causes the service to "block" in the presence of VACUUM. Maybe your application is trying to do ALTER TABLE too frequently (or something else entirely), which *would* block. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support