pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: daveg <daveg@sonic.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: hubert depesz lubaczewski <depesz@depesz.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [GENERAL] pg_upgrade problem
Date: Mon, 5 Sep 2011 19:17:28 -0700
Message-ID: <20110906021728.GK24583@sonic.net> (raw)
In-Reply-To: <201109060019.p860JL005675@momjian.us>
References: <20110906001650.GI24583@sonic.net>
	<201109060019.p860JL005675@momjian.us>

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  <bruce@momjian.us>        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.



view thread (61+ messages)  latest in thread

Message-ID: <20110906021728.GK24583@sonic.net>
Permalink:  ../20110906021728.GK24583@sonic.net/
Also on:    postgresql.org/message-id/20110906021728.GK24583@sonic.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: daveg@sonic.net, bruce@momjian.us, depesz@depesz.com, pgsql-hackers@postgresql.org
  Subject: Re: [GENERAL] pg_upgrade problem
  In-Reply-To: <20110906021728.GK24583@sonic.net>
  References: <20110906001650.GI24583@sonic.net> <201109060019.p860JL005675@momjian.us> <20110906021728.GK24583@sonic.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox