pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Duarte Carreira <DCarreira@edia.pt>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: duplicate OID issue when using pg_upgrade to move from 9.3 to 9.5
Date: Thu, 24 Jan 2019 16:02:25 -0500
Message-ID: <2957.1548363745@sss.pgh.pa.us> (raw)
In-Reply-To: <AM0PR07MB56679E7CF391A87C9794B78AA09A0@AM0PR07MB5667.eurprd07.prod.outlook.com>
References: <AM0PR07MB56679E7CF391A87C9794B78AA09A0@AM0PR07MB5667.eurprd07.prod.outlook.com>

Duarte Carreira <DCarreira@edia.pt> writes:
> I've trying to upgrade a 9.3 instance to 9.5 using pg_upgrade and facing this issue...

9.5.what?

Perusing the commit logs, I note that 9.5.3 included a fix for a
pg_upgrade issue that could possibly lead to this symptom, see
https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=196870f2f

If you are on 9.5.recent, it'd be worth looking closer, because this
is certainly pretty odd.  One wouldn't expect a CREATE FUNCTION to
result in assignment of a type OID, at least not in pg_dump/pg_upgrade
scripts --- they should always put out a shell CREATE TYPE first.

By any chance, if you attempt a "pg_dump -s" from the problematic database,
does it emit any warnings (about dependency loops, perhaps)?

			regards, tom lane




view thread (24+ messages)  latest in thread

Message-ID: <2957.1548363745@sss.pgh.pa.us>
Permalink:  ../2957.1548363745@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2957.1548363745@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, DCarreira@edia.pt
  Subject: Re: duplicate OID issue when using pg_upgrade to move from 9.3 to 9.5
  In-Reply-To: <2957.1548363745@sss.pgh.pa.us>
  References: <AM0PR07MB56679E7CF391A87C9794B78AA09A0@AM0PR07MB5667.eurprd07.prod.outlook.com> <2957.1548363745@sss.pgh.pa.us>

* 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