Re: pg_upgrade fails: Mismatch of relation OID in database 8.4 -> 9.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Jeff Ross <jeff(at)commandprompt(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_upgrade fails: Mismatch of relation OID in database 8.4 -> 9.3
Date: 2014-05-22 13:58:46
Message-ID: 3754.1400767126@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> Bruce Momjian wrote:
>> Moving forward, I think you need to add a dummy column to each problem
>> table and drop the column ---- that will create a toast table and allow
>> you to do the upgrade. I could have pg_upgrade detect this problem, but
>> until I know the cause, I don't think that is wise.

> Maybe --check mode could examine both clusters and see whether each
> table having toast table or not matches. That wouldn't solve the actual
> problem but at least give a clue, instead of these very obscure
> problems.

Well, the case of not needing a toast table anymore is expected
(drop a wide column). What we're scratching our heads over is the
other case.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-05-22 14:48:53 Re: uuid-ossp (Re: [pgsql-packagers] Postgresapp 9.4 beta build ready)
Previous Message Alvaro Herrera 2014-05-22 13:55:10 Re: pg_upgrade fails: Mismatch of relation OID in database 8.4 -> 9.3