Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 62248632B55 for ; Thu, 20 May 2010 13:53:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79629-04 for ; Thu, 20 May 2010 16:53:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 6152D6326C6 for ; Thu, 20 May 2010 13:53:31 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 4FC5A348035; Thu, 20 May 2010 09:53:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kY8nls-mVdZx; Thu, 20 May 2010 09:53:24 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-28-214.bk17-dsl.surnet.cl [190.95.28.214]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 5604E348002; Thu, 20 May 2010 09:53:24 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3D8F56E8FE; Thu, 20 May 2010 12:53:22 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Ray Stell , pgsql-admin Subject: Re: could not truncate directory "pg_subtrans": apparent wraparound From: Alvaro Herrera To: Mikko Partio In-reply-to: References: <20100519122108.GC7702@cns.vt.edu> Date: Thu, 20 May 2010 12:53:22 -0400 Message-Id: <1274373980-sup-3414@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5 X-Spam-Level: X-Archive-Number: 201005/190 X-Sequence-Number: 34663 Excerpts from Mikko Partio's message of jue may 20 00:39:00 -0400 2010: > On Wed, May 19, 2010 at 3:21 PM, Ray Stell wrote: > > http://archives.postgresql.org/pgsql-general/2007-06/msg01050.php > > Browsing through that thread I can see that I have similar symptoms: > > $ pg_controldata | grep Multi > Latest checkpoint's NextMultiXactId: 1 > Latest checkpoint's NextMultiOffset: 0 I don't remember why I insisted talking about multixacts in that thread, but seeing that both the poster in the 2007 thread and you have problems with the pg_subtrans directory, not pg_multixact, these "symptoms" actually mean nothing at all. pg_subtrans and pg_multixact are unrelated. I wonder if there's an off-by-one bug in SimpleLruTruncate, or perhaps the "cutoffPage" value passed by the caller is bogus once every ten blue moons ... hmm, it comes from GetOldestXmin ... Being more explicit in that error message (logging the cutoffPage) would help figuring out what's going on. --