Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4
Date
Msg-id 20130509192940.GB24521@momjian.us
Whole thread Raw
In response to Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4  ("Evan D. Hoffman" <evandhoffman@gmail.com>)
Responses Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4
List pgsql-hackers
On Thu, May  9, 2013 at 03:23:20PM -0400, Evan D. Hoffman wrote:
> I just did the whole process over from the beginning.  here's the full output:
> 
> Copying user relation files
>   /var/lib/pgsql/9.1/data/base/16406/3016054                  
> Mismatch of relation OID in database "db": old OID 2938685, new OID 299749
> Failure, exiting
> 
> real 16m17.924s
> user 1m34.334s
> sys 1m27.519s
> Thu May  9 14:47:25 EDT 2013
> 
> Here's the query of that OID:
> 
> db=# SELECT relname, relfilenode, relkind from pg_class where oid = 299749;
>     relname     | relfilenode | relkind
> ----------------+-------------+---------
>  pg_toast_17304 |      299749 | t
> (1 row)
> 
> db=#

OK, so the old oid matches 'substitutionlist_pkey' and the new oid
matches 'pg_toast_17304'.  Is that right?  Does 'substitutionlist_pkey'
exist in the new cluster at all?  You need to see if 2938685 exists in
the per-database dump file that should exist in the current directory,
and show me the lines matching and the DDL command below that.  You can
email me the entire file privately if you want --- there is only DDL in
there, no data (please verify if you are concerned).

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: corrupt pages detected by enabling checksums
Next
From: "Evan D. Hoffman"
Date:
Subject: Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4