Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWMHL-000481-OO for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 10:57:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWMHL-0006mz-5v for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 10:57:47 +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 1aWMGi-000632-DP for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 10:57:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aWMGd-0003d1-LC for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 10:57:07 +0000 MIME-Version: 1.0 Subject: BUG #13970: Vacuum hangs on particular table; cannot be terminated - requires `kill -QUIT pid` To: pgsql-bugs@postgresql.org From: brian@pukkasoft.com Date: Thu, 18 Feb 2016 10:56:33 +0000 Message-ID: <20160218105633.2660.10202@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.4 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 13970 Logged by: Brian Ghidinelli Email address: brian@pukkasoft.com PostgreSQL version: 9.4.6 Operating system: Linux (RHEL 5.11) Description: Hi Pg team - I've been running a 9.4.1 server for the last year+. In the past few months I've had a couple of instances of the server locking up. I've done more troubleshooting into this last event and uncovered what appears to be a bug. My situation is much like these: http://comments.gmane.org/gmane.comp.db.postgresql.admin/40587 http://postgresql.nabble.com/VACUUM-hanging-on-PostgreSQL-8-3-1-for-larger-tables-td1898438.html The former claims lightweight locks had a bug up thru 9.4.5 but I'm running the latest 9.4.6 and still experiencing this issue with one table. Here's the scenario: * Either autovacuum OR manual vacuum on a single table hangs * There is no cpu or i/o usage; top -p shows the vacuum process is sleeping * strace of the process id shows rapidly scrolling screenfuls of `select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)` * Running a query against pg_locks shows the vacuum has been granted a lock but it is not fast path. * There are no other queries running... I can trigger this behavior after a fresh reboot and no other users by issuing a simple vacuum. * I have reindex'd the table as well as dropped all but the primary key in case there were issues with the index - still hung when vacuum was attempted * Interestingly when I check the last autovacuum/autoanalyze report, they are all blank, even though I have autovacuum on It scares me a lot that pg_cancel_backend and pg_terminate_backend don't work. It requires a kill -QUIT to break out this process. What can I investigate to help add more information? Brian -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs