Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJCS0-0003ml-Bv for pgsql-admin@arkaria.postgresql.org; Fri, 09 Jun 2017 05:27:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dJCRy-0001iA-HB for pgsql-admin@arkaria.postgresql.org; Fri, 09 Jun 2017 05:27:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJCQC-0006yk-18 for pgsql-admin@postgresql.org; Fri, 09 Jun 2017 05:25:20 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJCQ5-0004PX-1A for pgsql-admin@postgresql.org; Fri, 09 Jun 2017 05:25:18 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6F8E620C09; Fri, 9 Jun 2017 01:25:11 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 09 Jun 2017 01:25:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=sJ8U1YjC65WOBN3Zat Ma2sJ0VijRc9UZzr0nzebJf80=; b=I+Qnyc1+xa30Yba8jdcRz6F6F5Z8+lvg05 xUv/Sckgy7BJZk1gkeDOCjLcrygRVfyOpdO1Bx3zFTPPhjI+debcyi6izkvolwQh 7Ol2OTPrgFDs25ulFaHOz/ACP9NTa1HG/awKCkDIXEQY8ZNShSiudq3Ps28cF/si xnl/xRs9H8b6OPLLVl9KdrIHEcxOeFnnNNLiiJLKzLu2GGuA1OGKxyoGuuEUxLgw +QvAV/UlnGivoHNc6WQAjti7BpP4cneMrkSvdEQNnxdhfox98XSDaNWccj9X/2VA ApO09pFk+EGFOoI3Z9I1qPtPNzrh1Idbq1pLHs/45YrrzNSpoaWA== X-ME-Sender: X-Sasl-enc: d9CZY0rV/KRmrWQKiYAb/ZJepqgr7mIhRu2BnUWKjN4X 1496985911 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 30C707E5F1; Fri, 9 Jun 2017 01:25:11 -0400 (EDT) Date: Thu, 8 Jun 2017 22:25:10 -0700 From: Andres Freund To: Harold Falkmeyer Cc: pgsql-admin@postgresql.org Subject: Re: VACUUM ANALYZE Issues Message-ID: <20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de> References: <20170605224725.2jim73rpppgyoooh@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 Hi, Please don't full-quote on this list. On 2017-06-08 21:52:38 -0700, Harold Falkmeyer wrote: > What would cause a VACUUM ANALYZE to acquire an ACCESS EXCLUSIVE lock (not > running as a VACUUM FULL)? It does so when truncating the relation, to remove free space at the end of the relation. If there's a lot of free space, that can take a while. This has been much improved in releases since 8.4... - Andres -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin