Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wYi-0006bU-Qo for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 17:04:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0wYi-0005E7-6C for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 17:04:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wYh-0005E1-I0 for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 17:04:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wYf-00049X-31 for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 17:04:47 +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 s08H4dP0007974; Wed, 8 Jan 2014 12:04:39 -0500 From: Tom Lane To: Marko Tiikkaja cc: Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: Backends stuck in LISTEN In-reply-to: <52CD7F56.9000501@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> <6224.1389195529@sss.pgh.pa.us> <6588.1389196547@sss.pgh.pa.us> <52CD7F56.9000501@joh.to> Comments: In-reply-to Marko Tiikkaja message dated "Wed, 08 Jan 2014 17:39:50 +0100" Date: Wed, 08 Jan 2014 12:04:39 -0500 Message-ID: <7973.1389200679@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: > On 1/8/14 4:55 PM, Tom Lane wrote: >> If I did the math right, this corresponds to pg_clog file 010C. Do you >> have such a file? Does it look to have the right size and permissions? >> What file names are present in pg_clog? > No, it's not there. The files look like this: > -rw------- 1 postgres postgres 256K Nov 3 15:55 0390 > -rw------- 1 postgres postgres 256K Nov 3 22:26 0391 > .. > -rw------- 1 postgres postgres 256K Jan 8 16:43 044D > -rw------- 1 postgres postgres 24K Jan 8 17:28 044E Oh, I fat-fingered the math somehow, because when I do it over again, I get 0430 (or 0438 for your other observed XID). That's right in the range of your available clog files, so the notion of a crazy XID in the message queue doesn't seem to be the explanation here. Since the referenced XIDs are not close together, I assume that the two traces also show different pagenos (SimpleLruReadPage) and slotnos (SimpleLruWaitIO) and lockids (LWLockAcquire)? That leads to the idea that we've got some condition that broke all of the clog SLRU slots at the same time, though it's really hard to see what that might be ... 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