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

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jeff Ross <jeff(at)commandprompt(dot)com>
Cc: 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-21 14:49:43
Message-ID: 20140521144943.GA14030@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 20, 2014 at 10:25:44PM -0400, Bruce Momjian wrote:
> Find the table that is getting the toast file on the new cluster but not
> the old one, and run all the commands related to that table from the
> dump --- you don't need to load any data, just the schema items.
>
> Run that on the old cluster and the new cluster, then check if you are
> getting the same case where there is no toast table on the old cluster
> but one on the new cluster. Remember to only use the 9.3 pg_dump output
> for both old and new clusters.

FYI, you might want to test this by using a different database in the old
cluster so you don't interfere with the existing data.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-05-21 15:33:18 Re: buildfarm animals and 'snapshot too old'
Previous Message Robert Haas 2014-05-21 12:01:28 Re: BUGFIX: Dynamic bgworkers with BGW_NEVER_RESTART worker restarted on FatalError