Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8U6y-0004ot-E1 for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 13:56:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z8U6w-0002Vv-At for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 13:56:06 +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 1Z8U4h-0008Ro-Ad for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 13:53:47 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z8U4e-00041K-ER for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 13:53:46 +0000 Received: from intern.anarazel.de (unknown [37.82.95.140]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 0B80F860001; Fri, 26 Jun 2015 15:53:43 +0200 (CEST) Date: Fri, 26 Jun 2015 15:53:42 +0200 From: Andres Freund To: matthew.seaman@adestra.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables Message-ID: <20150626135342.GG4797@alap3.anarazel.de> References: <20150626110830.3881.92624@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150626110830.3881.92624@wrigleys.postgresql.org> X-Pg-Spam-Score: 4.4 (++++) 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 Hello,m On 2015-06-26 11:08:30 +0000, matthew.seaman@adestra.com wrote: > We have two tables which we have not been able to vacuum sucessfully on one > of our database servers. The vacuum process just hangs almost > instantaneously after issuing the 'VACUUM ANALYZE' command. Hm. Is there a chance that your application uses cursors? Could you send the output of: SELECT oid::regclass, txid_current(), relfrozenxid, age(relfrozenxid) FROM pg_class WHERE oid = 'your relation'::regclass; My theory is that there's a page that needs to be frozen, but a pin on the page exists, preventing the cleanup lock from being acquired. Or rather delaying it long enough that little progress is made. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs