pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: Re: [GENERAL] pg_upgrade problem
Date: Thu, 25 Aug 2011 22:53:18 +0200
Message-ID: <20110825205318.GA25225@depesz.com> (raw)
In-Reply-To: <201108252043.p7PKh2g03510@momjian.us>
References: <20110825203641.GA19537@depesz.com>
	<201108252043.p7PKh2g03510@momjian.us>

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




view thread (61+ messages)  latest in thread

Message-ID: <20110825205318.GA25225@depesz.com>
Permalink:  ../20110825205318.GA25225@depesz.com/
Also on:    postgresql.org/message-id/20110825205318.GA25225@depesz.com

 · 

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: depesz@depesz.com, bruce@momjian.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [GENERAL] pg_upgrade problem
  In-Reply-To: <20110825205318.GA25225@depesz.com>
  References: <20110825203641.GA19537@depesz.com> <201108252043.p7PKh2g03510@momjian.us> <20110825205318.GA25225@depesz.com>

* 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