Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjA7j-0007gG-Fx for pgsql-admin@arkaria.postgresql.org; Mon, 05 Oct 2015 18:04:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZjA7j-0001ri-1b for pgsql-admin@arkaria.postgresql.org; Mon, 05 Oct 2015 18:04:31 +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 1ZjA64-0007dJ-NU for pgsql-admin@postgresql.org; Mon, 05 Oct 2015 18:02:48 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZjA61-0005tR-TC for pgsql-admin@postgresql.org; Mon, 05 Oct 2015 18:02:47 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZjA60-0004BD-QM; Mon, 05 Oct 2015 14:02:44 -0400 Date: Mon, 5 Oct 2015 14:02:44 -0400 From: Bruce Momjian To: "Guo, Yun" Cc: "pgsql-admin@postgresql.org" Subject: Re: pg_upgrade from 9.3 to 9.4 fails Message-ID: <20151005180244.GB6784@momjian.us> References: <20151005172418.GA6784@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) 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 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 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