Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1D359B5DEC6 for ; Mon, 5 Sep 2011 23:18:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 87504-05-2 for ; Tue, 6 Sep 2011 02:18:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mail.postgresql.org (Postfix) with ESMTP id 9CCD1B5DE31 for ; Mon, 5 Sep 2011 23:18:40 -0300 (ADT) Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id p862HSqt024181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Sep 2011 19:17:28 -0700 Received: from bolt.sonic.net (IDENT:dh0XczANJQyhsv2c22WJUOvClsxZdYm8@localhost.localdomain [127.0.0.1]) by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id p862HSYt017112; Mon, 5 Sep 2011 19:17:28 -0700 Received: (from daveg@localhost) by bolt.sonic.net (8.13.6/8.12.1/Submit) id p862HS7g017109; Mon, 5 Sep 2011 19:17:28 -0700 Date: Mon, 5 Sep 2011 19:17:28 -0700 From: daveg To: Bruce Momjian Cc: hubert depesz lubaczewski , PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110906021728.GK24583@sonic.net> References: <20110906001650.GI24583@sonic.net> <201109060019.p860JL005675@momjian.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109060019.p860JL005675@momjian.us> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/226 X-Sequence-Number: 194415 On Mon, Sep 05, 2011 at 08:19:21PM -0400, Bruce Momjian wrote: > daveg wrote: > > > Can you tell me what table is showing this error? Does it happen during > > > vacuum? Can you run a vacuum verbose to see what it is throwing the > > > error on? Thanks. > > > > This was upgrading from 8.4.8 to 9.0.4. I don't have the running cluster > > anymore, but I do have tar.gz archives of it and could probably find > > 2TB free somewhere to restore it to if there is something useful to extract. > > > > However, I don't think this was toast related. Most of our rows are short and > > have only int, float, and short text columns. These errors hit over 60 > > different tables mostly during the analyzes we ran immediately after the > > upgrade. It also hit during select, insert and delete statements. We did not > > run the db more than a few minutes as the damage was so extensive. > > > > As far as I can tell pg_upgrade never copied any pg_clog files from the > > old cluster to the new cluster. I wish I had detected that before running > > the remove_old_cluster.sh script. > > Wow, no clogs? That would make the system very confused. You can pull > the clogs out of the old backup and move them over if the files don't > already exist. We don't have the old cluster after running delete_old_cluster.ch. We use pg_dump for backup, so no clogs. We ended up restored 20 odd dbs totalling 2.1TB from the previous days pg_dumps. If you review my original report I mentioned that there were only 2 clog files in the new cluster both with ctime after the start of postgresql after the upgrade. I did the upgrade for three hosts at the same time, the others were fine. They have dozens of clogs dating back days before the upgrade. The failing system had only 2 recent clog. -dg > -- > Bruce Momjian http://momjian.us > EnterpriseDB http://enterprisedb.com > > + It's impossible for everything to be true. + > -- David Gould daveg@sonic.net 510 536 1443 510 282 0869 If simplicity worked, the world would be overrun with insects.