Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWst5-0001wT-EO for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Feb 2016 21:46:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWst3-0005fR-Rs for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Feb 2016 21:46:53 +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) (envelope-from ) id 1aWssR-0004xg-1P for pgsql-bugs@postgresql.org; Fri, 19 Feb 2016 21:46:15 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWssI-0004H1-ED for pgsql-bugs@postgresql.org; Fri, 19 Feb 2016 21:46:13 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.127.191]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 88DAC401134; Fri, 19 Feb 2016 13:45:59 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 136C7594; Fri, 19 Feb 2016 18:45:55 -0300 (CLT) Date: Fri, 19 Feb 2016 18:45:55 -0300 From: Alvaro Herrera To: Brian Ghidinelli Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13970: Vacuum hangs on particular table; cannot be terminated - requires `kill -QUIT pid` Message-ID: <20160219214555.GA150237@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5E032A4D-801B-44FF-8FFA-FF00E08F0A7E@vfive.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Here's another idea: just try SELECT FOR UPDATE on the offending tuple. As I recall, that code path has enough protections that we wouldn't try to read the members of the multixact even if we don't see it as below the horizon, simply by checking the infomask bits as I mentioned before. You could try SELECT FOR UPDATE the complete table. If you had debug symbols you could grab the specific TID that's giving you trouble from the backtrace ... but then the table is not *that* large. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs