Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjA9H-0007pD-CL for pgsql-admin@arkaria.postgresql.org; Mon, 05 Oct 2015 18:06:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZjA9G-0004u2-Ms for pgsql-admin@arkaria.postgresql.org; Mon, 05 Oct 2015 18:06:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZjA7b-0001aB-A6 for pgsql-admin@postgresql.org; Mon, 05 Oct 2015 18:04:23 +0000 Received: from smtp1.cvent.com ([198.207.146.196]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZjA7U-0005uN-AO for pgsql-admin@postgresql.org; Mon, 05 Oct 2015 18:04:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvent.com; i=@cvent.com; q=dns/txt; s=c1211; t=1444068256; x=1475604256; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=GyESHqUSUGOR9oa++RG05TysB176AFM3C85PDrvvnfw=; b=BPITkjKWqZqfzu3z4bAjwRTck6ccnV6RvcK/xv51VjGRbhSN0u+gXpie GNyO21O581zUqG1pof2ZAaV3lMgWO3jC8swa7LG9hEZoRhe57b8HRZ5Gp OPr9Q1mDiFFbyVj6WytQwlUX2vSQN3KjuMuUZnk63hw7jlzrY9T+q1Fqb E=; X-IronPort-AV: E=Sophos;i="5.17,639,1437451200"; d="scan'208";a="55788647" From: "Guo, Yun" To: Bruce Momjian CC: "pgsql-admin@postgresql.org" Subject: Re: pg_upgrade from 9.3 to 9.4 fails Thread-Topic: [ADMIN] pg_upgrade from 9.3 to 9.4 fails Thread-Index: AQHQ/4mcAUs7p8odSEODO5MGegI4x55dIRKAgABIPQD//8cJgIAAQ7QA//+9XIA= Date: Mon, 5 Oct 2015 18:04:13 +0000 Message-ID: References: <20151005172418.GA6784@momjian.us> <20151005180244.GB6784@momjian.us> In-Reply-To: <20151005180244.GB6784@momjian.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.3.150624 Content-Type: text/plain; charset="us-ascii" Content-ID: <515647C9B98215418DAF6E22529CAB1C@cvent.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 10/5/15, 2:02 PM, "Bruce Momjian" 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 =3D 1670699; >>=20 >> This turns out to be empty in all of the databases: >> postgres=3D# SELECT * FROM pg_type WHERE oid =3D 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 >>=20 >>---------+--------------+----------+--------+----------+---------+------- >>-- >> ----+----------------+--------------+----------+----------+---- >>=20 >>-----+----------+----------+-----------+------------+---------+---------- >>+- >> ----------+------------+----------+------------+------------+-- >>=20 >>-----------+-----------+----------+--------------+---------------+------- >>-- >> ---+-------- >> (0 rows) > >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. > >> >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. >>=20 >> If my old server system catalog is messed up is there way to repair it? > >Usually, once we find the cause. > >--=20 > Bruce Momjian http://momjian.us > EnterpriseDB http://enterprisedb.com > >+ As you are, so once was I. As I am, so you will be. + >+ Roman grave inscription + --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin