Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8W30-0001kD-0I for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 16:00:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z8W2y-0002DS-L8 for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 16:00:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z8W1j-0000qh-Ol for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 15:58:51 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z8W1h-0006Us-6H for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 15:58:51 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 98A91860002; Fri, 26 Jun 2015 17:58:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6AF3.dip0.t-ipconnect.de [93.220.106.243]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id B483C860001; Fri, 26 Jun 2015 17:58:45 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 3C63410104A; Fri, 26 Jun 2015 17:58:45 +0200 (CEST) Date: Fri, 26 Jun 2015 17:58:45 +0200 From: Andres Freund To: Matthew Seaman Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables Message-ID: <20150626155845.GA30708@awork2.anarazel.de> References: <20150626110830.3881.92624@wrigleys.postgresql.org> <20150626135342.GG4797@alap3.anarazel.de> <558D6429.7080400@adestra.com> <20150626145811.GI4797@alap3.anarazel.de> <558D6DEF.3090208@adestra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <558D6DEF.3090208@adestra.com> X-Pg-Spam-Score: -5.6 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-06-26 16:21:19 +0100, Matthew Seaman wrote: > Restarting the DB is going to require all sorts of outage notifications > and general palaver, so we'd definitely prefer not to that if we can > possibly avoid it. Is it feasible to lock the table exclusively for a short time? If so you can just VACUUM FULL them - given the table sizes that should be fairly quick. (The difference between table level exclusive locks and cleanup locks is that the latter aren't "fair", i.e. a continious stream of pins will block them, whereas heavyweight locks are queued) - Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs