Re: pg_upgrade from 9.3 to 9.4 fails

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Guo, Yun" <YGuo(at)cvent(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_upgrade from 9.3 to 9.4 fails
Date: 2015-10-05 18:02:44
Message-ID: 20151005180244.GB6784@momjian.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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;
>
> This turns out to be empty in all of the databases:
> postgres=# SELECT * FROM pg_type WHERE oid = 1670699;
> typname | typnamespace | typowner | typlen | typbyval | typtype |
> typcategory | typispreferred | typisdefined | typdelim | typrelid | typ
> elem | typarray | typinput | typoutput | typreceive | typsend | typmodin |
> typmodout | typanalyze | typalign | typstorage | typnotnull | t
> ypbasetype | typtypmod | typndims | typcollation | typdefaultbin |
> typdefault | typacl
> ---------+--------------+----------+--------+----------+---------+---------
> ----+----------------+--------------+----------+----------+----
> -----+----------+----------+-----------+------------+---------+----------+-
> ----------+------------+----------+------------+------------+--
> -----------+-----------+----------+--------------+---------------+---------
> ---+--------
> (0 rows)

OK, try running the error query in all the databases then.

> >This query doesn't even query pg_type, so it must be some internal use
> >of pg_type.
> >
> >The reason check doesn't show the failure is that only a non-check run
> >collects pg_class.oid values, but we never expect that to fail so we
> >don't test it in check mode.
> >
> >My guess is that something is messed up in your system catalogs. Can
> >you try running this query in each old database and see if it fails.
>
> If my old server system catalog is messed up is there way to repair it?

Usually, once we find the cause.

--
Bruce Momjian <bruce(at)momjian(dot)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 +

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Guo, Yun 2015-10-05 18:04:13 Re: pg_upgrade from 9.3 to 9.4 fails
Previous Message Guo, Yun 2015-10-05 18:00:27 Re: pg_upgrade from 9.3 to 9.4 fails