Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 366F4632ACE for ; Sun, 23 May 2010 15:02:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 75407-04 for ; Sun, 23 May 2010 18:02:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 39D8A6327DB for ; Sun, 23 May 2010 15:02:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o4NI2eJs018039; Sun, 23 May 2010 14:02:40 -0400 (EDT) To: Mikko Partio cc: pgsql-admin@postgresql.org Subject: Re: could not truncate directory "pg_subtrans": apparent wraparound In-reply-to: References: Comments: In-reply-to Mikko Partio message dated "Wed, 19 May 2010 08:40:04 +0300" Date: Sun, 23 May 2010 14:02:40 -0400 Message-ID: <18038.1274637760@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/218 X-Sequence-Number: 34691 Mikko Partio writes: > got the following line at postgresql log: > May 16 01:17:35 xxx postgres[25550]: [1-1] LOG: could not truncate > directory "pg_subtrans": apparent wraparound > PostgreSQL 9.0beta1 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) > 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit Where did this beta1 installation come from --- was it freshly initdb'd under 9.0, or did you use pg_upgrade on a pre-existing database that had been around for awhile? It strikes me that the recently identified bug in pg_upgrade about not fixing the datfrozenxid of template0 might possibly explain this. You'd need to have upgraded an installation that was at least a couple billion transactions old to hit that bug. regards, tom lane