pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Tiikkaja <marko@joh.to>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Backends stuck in LISTEN
Date: Wed, 08 Jan 2014 17:39:50 +0100
Message-ID: <52CD7F56.9000501@joh.to> (raw)
In-Reply-To: <6588.1389196547@sss.pgh.pa.us>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 1/8/14 4:55 PM, Tom Lane wrote:
> Marko Tiikkaja <marko@joh.to> writes:
>>> In the meanwhile I'll be happy to provide more information if someone
>>> has any ideas.
>
> Oh, after further thought: this trace says the process was trying to look
> up the status of XID 1124964531 (see the TransactionIdGetStatus and
> TransactionLogFetch calls).  Do all the backtraces show this same XID?

I only got two, and the other one wants the status of 1133447326.

> 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

> It'd also be interesting to see the current XID counter according to
> pg_controldata, especially if you have some idea how far it's advanced
> since the problem happened.

Latest checkpoint's NextXID:          0/1155614649

(I hope that's the number you were looking for.)

Judging from a few days old base backup that number would have been 
(very roughly) around 1148225540 when this incident happened.



Regards,
Marko Tiikkaja


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (12+ messages)  latest in thread

Message-ID: <52CD7F56.9000501@joh.to>
Permalink:  ../52CD7F56.9000501@joh.to/
Also on:    postgresql.org/message-id/52CD7F56.9000501@joh.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: marko@joh.to, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox