Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D2F26B5D803 for ; Thu, 25 Aug 2011 17:36:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04749-10 for ; Thu, 25 Aug 2011 20:36:42 +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 68935B5DC1E for ; Thu, 25 Aug 2011 17:36:42 -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 1QwgfJ-0005U0-F8; Thu, 25 Aug 2011 22:36:41 +0200 Date: Thu, 25 Aug 2011 22:36:41 +0200 From: hubert depesz lubaczewski To: Bruce Momjian Cc: PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110825203641.GA19537@depesz.com> Reply-To: depesz@depesz.com References: <20110825195757.GA28394@depesz.com> <201108252033.p7PKX7629929@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201108252033.p7PKX7629929@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.432 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.532 X-Spam-Level: X-Archive-Number: 201108/1148 X-Sequence-Number: 193903 On Thu, Aug 25, 2011 at 04:33:07PM -0400, Bruce Momjian wrote: > The problem appears to be that the Postgres catalogs think there is a > toast table for 'actions', while the file system doesn't seem to have > such a file. I can you look in pg_class and verify that? > > SELECT reltoastrelid FROM pg_class WHERE relname = 'actions'; $ SELECT reltoastrelid FROM pg_class WHERE relname = 'actions'; reltoastrelid --------------- (0 rows) This is done not on the pg from backup, but on normal production, as the test pg instance doesn't work anymore. I can re-set the test instance, but extracting from backup, and making it apply all xlogs usually takes 2-3 days. > > 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. Best regards, depesz