pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Guo, Yun <YGuo@cvent.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: pg_upgrade from 9.3 to 9.4 fails
Date: Mon, 5 Oct 2015 14:16:12 -0400
Message-ID: <20151005181612.GC6784@momjian.us> (raw)
In-Reply-To: <D23833AE.48502%yguo@cvent.com>
References: <D2381B50.48442%yguo@cvent.com>
	<D2381B7B.48445%yguo@cvent.com>
	<20151005172418.GA6784@momjian.us>
	<D2383215.484EC%yguo@cvent.com>
	<20151005180244.GB6784@momjian.us>
	<D23833AE.48502%yguo@cvent.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Mon, Oct  5, 2015 at 06:04:13PM +0000, Guo, Yun wrote:
> 
> 
> On 10/5/15, 2:02 PM, "Bruce Momjian" <bruce@momjian.us> wrote:
> 
> >On Mon, Oct  5, 2015 at 06:00:27PM +0000, Guo, Yun wrote:
> >> >Wow, that is weird.  Can you run this query on the old cluster and show
> >> >us the output?
> >> >
> >> >	SELECT * FROM pg_type WHERE oid = 1670699;
> >OK, try running the error query in all the databases then.
> 
> I tried it all databases. None of them has oid 1670699 in pg_type.

Yes, I know that.  I want you to run the query that generated the error
in each database and figure out which database has the problem, see
below.  My guess is that database references a datatype that doesn't
exist anymore, for some reason.

---------------------------------------------------------------------------

CREATE TEMPORARY TABLE info_rels (reloid) AS SELECT c.oid FROM
pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n   ON c.relnamespace =
n.oid LEFT OUTER JOIN pg_catalog.pg_index i   ON c.oid = i.indexrelid WHERE
relkind IN ('r', 'm', 'i', 'S') AND  i.indisvalid IS DISTINCT FROM false AND
 i.indisready IS DISTINCT FROM false AND   ((n.nspname !~ '^pg_temp_' AND
n.nspname !~ '^pg_toast_temp_' AND     n.nspname NOT IN ('pg_catalog',
'information_schema', 'binary_upgrade', 'pg_toast') AND c.oid >= 16384)   OR
(n.nspname = 'pg_catalog' AND     relname IN ('pg_largeobject',
'pg_largeobject_loid_pn_index', 'pg_largeobject_metadata',
'pg_largeobject_metadata_oid_index') ));

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Roman grave inscription                             +


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (10+ messages)  latest in thread

Message-ID: <20151005181612.GC6784@momjian.us>
Permalink:  ../20151005181612.GC6784@momjian.us/
Also on:    postgresql.org/message-id/20151005181612.GC6784@momjian.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, YGuo@cvent.com
  Subject: Re: pg_upgrade from 9.3 to 9.4 fails
  In-Reply-To: <20151005181612.GC6784@momjian.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