Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EA0B4B5DC04 for ; Thu, 25 Aug 2011 17:53:25 -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 68559-03 for ; Thu, 25 Aug 2011 20:53:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from depesz.com (andy.depesz.com [88.198.47.100]) by mail.postgresql.org (Postfix) with ESMTP id 92293B5DC09 for ; Thu, 25 Aug 2011 17:53:19 -0300 (ADT) Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.76) (envelope-from ) id 1QwgvO-0007ZG-Oj; Thu, 25 Aug 2011 22:53:18 +0200 Date: Thu, 25 Aug 2011 22:53:18 +0200 From: hubert depesz lubaczewski To: Bruce Momjian Cc: PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110825205318.GA25225@depesz.com> Reply-To: depesz@depesz.com References: <20110825203641.GA19537@depesz.com> <201108252043.p7PKh2g03510@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201108252043.p7PKh2g03510@momjian.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.402 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.502 X-Spam-Level: X-Archive-Number: 201108/1151 X-Sequence-Number: 193906 On Thu, Aug 25, 2011 at 04:43:02PM -0400, Bruce Momjian wrote: > Please check the old cluster. Sure: =# SELECT reltoastrelid FROM pg_class WHERE relname = 'actions'; reltoastrelid --------------- 82510395 71637071 (2 rows) =# SELECT oid::regclass, reltoastrelid FROM pg_class WHERE relname = 'actions'; oid | reltoastrelid ---------------+--------------- xxxxx.actions | 82510395 yyyyy.actions | 71637071 (2 rows) =# select oid, relfilenode from pg_class where oid in (SELECT reltoastrelid FROM pg_class WHERE relname = 'actions'); oid | relfilenode ----------+------------- 82510395 | 82510395 71637071 | 71637071 (2 rows) =# select oid from pg_database where datname = current_database(); oid ---------- 71635381 (1 row) $ ls -l 6666/base/71635381/{71637071,82510395} -rw------- 1 postgres postgres 0 2009-10-12 06:49 6666/base/71635381/71637071 -rw------- 1 postgres postgres 0 2010-08-19 14:02 6666/base/71635381/82510395 > > > > One more thing - one of earlier tests actually worked through > > > > pg_upgrade, but when running vacuumdb -az on newly started 9.0.4, I got > > > > error about missing transaction/clog - don't remember exactly what it > > > > was, though. > > > THere was a bug in how how pg_upgrade worked in pre-9.0.4 --- could it > > > have been that? > > It was done definitely using 9.0.4. > Good. Not sure if it's good, since it was after the clog error was fixed, and I still got it :/ but anyway - the problem with 71637071 is more important now. Best regards, depesz