Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wAh-0005cc-KE for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 16:39:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0wAh-0001Ke-4W for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 16:39:59 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wAg-0001KY-B1 for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 16:39:58 +0000 Received: from mail-la0-f52.google.com ([209.85.215.52]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0wAd-0005Bp-EV for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 16:39:57 +0000 Received: by mail-la0-f52.google.com with SMTP id y1so1327894lam.11 for ; Wed, 08 Jan 2014 08:39:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/DgcI+3KNaPxz2GsJiM3+v5Xy9obSBrMxvBc7vmHO4Y=; b=csuPUudIv/BTB0lkKgT4Io/SPh4Vr1yguKeQM+wDNMnKll1TY267bXxFmVtsd43WMJ 5Rpu4p8K799DkKWzKmf3LT7Jyb+LHO0mxmNoFdNlFafV4PQmPBEjz60utDE2Q8wqsW7v MYVaK4xAm4JGuPLWflqnXOvGUfyQW0udteYaLyqGYjyKXGHs8Tk7v4vJLfBAS4IhNgG7 39Hb0rAYzyLdVcbb5G2t8kQtlRuKKVHE0/sHn9Yq59kvcNSvDIBL0tkVIyHSI20EAOZ9 6WS4VvWGLHdddTg/+Svw/1cjfV3WleAb5NWJihowPnyp9spcm4gZPYLRJuxMJEcEnCKi rz+w== X-Gm-Message-State: ALoCoQnI/uBbhfFgvHho3ND1haBGHzO85UCs/femABUScidnwzgsjvR1dhcznNhZ2ASAc5L00EaL X-Received: by 10.112.16.137 with SMTP id g9mr46267640lbd.1.1389199193604; Wed, 08 Jan 2014 08:39:53 -0800 (PST) Received: from Markos-MacBook-Pro.local ([46.246.117.202]) by mx.google.com with ESMTPSA id di11sm60652091lac.0.2014.01.08.08.39.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 08:39:52 -0800 (PST) Message-ID: <52CD7F56.9000501@joh.to> Date: Wed, 08 Jan 2014 17:39:50 +0100 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Tom Lane CC: Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: Backends stuck in LISTEN 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> In-Reply-To: <6588.1389196547@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 1/8/14 4:55 PM, Tom Lane wrote: > Marko Tiikkaja 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