Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0vDj-00038Z-NZ for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 15:39:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0vDj-0007II-5x for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 15:39:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0vDi-0007HM-75 for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 15:39:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0vDf-0002Za-9N for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 15:39:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s08FcnoG006225; Wed, 8 Jan 2014 10:38:49 -0500 From: Tom Lane To: Marko Tiikkaja cc: Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: Backends stuck in LISTEN In-reply-to: <52CD6733.60307@joh.to> References: <52CC830A.2050602@joh.to> <20140108140058.GH6840@eldon.alvh.no-ip.org> <52CD5FB8.20000@joh.to> <52CD6471.5030503@joh.to> <20140108145029.GI6840@eldon.alvh.no-ip.org> <52CD6733.60307@joh.to> Comments: In-reply-to Marko Tiikkaja message dated "Wed, 08 Jan 2014 15:56:51 +0100" Date: Wed, 08 Jan 2014 10:38:49 -0500 Message-ID: <6224.1389195529@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) 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 Marko Tiikkaja writes: > In the meanwhile I'll be happy to provide more information if someone > has any ideas. I don't suppose there's anything in the postmaster log suggesting trouble with accessing pg_clog/ files shortly before the lockup? I concur with Alvaro's assessment that this looks like a bunch of processes all waiting for somebody else to finish reading the clog page they want. If somebody had forgotten to unlock the I/O lock after loading a clog buffer, we could get this symptom later on; but I find it hard to see how that could happen. BTW ... just looking at the code a bit ... I wonder whether there is any interlock that ensures that listen-queue messages will be cleared before the originating transaction's entry is truncated away from pg_clog? It doesn't seem like an ancient XID in the message queue could cause this particular symptom, but I could see it leading to "could not access status of transaction" failures. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs