Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VyPeF-0007g4-EW for pgsql-general@arkaria.postgresql.org; Wed, 01 Jan 2014 17:32:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VyPeE-0007wq-Sv for pgsql-general@arkaria.postgresql.org; Wed, 01 Jan 2014 17:32:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VyPeD-0007wh-AH for pgsql-general@postgresql.org; Wed, 01 Jan 2014 17:32:01 +0000 Received: from zixgateway01.rowan.edu ([150.250.76.11]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VyPeA-0002A2-Gr for pgsql-general@postgresql.org; Wed, 01 Jan 2014 17:32:00 +0000 Received: from 127.0.0.1 (ZixVPM [127.0.0.1]) by Outbound.rowan.edu (Proprietary) with SMTP id E894C2F51F9 for ; Wed, 1 Jan 2014 12:31:17 -0500 (EST) Received: from mx5.rowan.edu (mx5.rowan.edu [150.250.65.17]) by zixgateway01.rowan.edu (Proprietary) with ESMTP id 709632F51CE for ; Wed, 1 Jan 2014 12:31:17 -0500 (EST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEALZPxFKW+kA0/2dsb2JhbABYg0O5coErdIIlAQEBAwE6UQEIGB4xESUBAQQTh3ADCQebXaMrDVeEUxeNCoExEQEHUIQ2BIlDjGiBbIpLgg+FOoNLgUsIFw X-IPAS-Result: AqAEALZPxFKW+kA0/2dsb2JhbABYg0O5coErdIIlAQEBAwE6UQEIGB4xESUBAQQTh3ADCQebXaMrDVeEUxeNCoExEQEHUIQ2BIlDjGiBbIpLgg+FOoNLgUsIFw X-IronPort-AV: E=Sophos;i="4.95,586,1384318800"; d="scan'208";a="32874800" Received: from exchange2007-ca-2.rowan.edu (HELO ex2k7-ca-2.rowanads.rowan.edu) ([150.250.64.52]) by mx2-outbound.rowan.edu with ESMTP; 01 Jan 2014 12:31:53 -0500 Received: from EX2K7-MB-10.rowanads.rowan.edu ([150.250.64.34]) by ex2k7-ca-2.rowanads.rowan.edu ([2002:96fa:4034::96fa:4034]) with mapi; Wed, 1 Jan 2014 12:31:03 -0500 From: "Reiser, John J." To: "pgsql-general@postgresql.org" Date: Wed, 1 Jan 2014 12:31:51 -0500 Subject: Re: duplicate OID issue when using pg_upgrade to move from 8.4 to 9.2 Thread-Topic: [GENERAL] duplicate OID issue when using pg_upgrade to move from 8.4 to 9.2 Thread-Index: Ac8HFz7INVujkee0SqacMMg/fZR00w== Message-ID: In-Reply-To: <52C44FA9.2080500@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-VPM-MSG-ID: ce4126d7-8149-45f7-a8ba-757b0cbfa067 X-VPM-HOST: zixgateway01.rowan.edu X-VPM-ENC-REGIME: Plaintext X-VPM-CERT-FLAG: 0 X-VPM-IS-HYBRID: 0 X-Pg-Spam-Score: -0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Adrian, On 1/1/14, 12:26 PM, "Adrian Klaver" wrote: >On 01/01/2014 09:08 AM, Reiser, John J. wrote: >> The --link argument doesn't work, either: >> > >> >> Consult the last few lines of "pg_upgrade_restore.log" for >> the probable cause of the failure. >> Failure, exiting >> bash-4.1$ tail -n 20 pg_upgrade_restore.log >> (1 row) >> >> CREATE TYPE "spheroid" ( >> INTERNALLENGTH =3D 65, >> INPUT =3D spheroid_in, >> OUTPUT =3D spheroid_out, >> ALIGNMENT =3D double, >> STORAGE =3D plain >> ); >> CREATE TYPE >> ALTER TYPE "public"."spheroid" OWNER TO "reiser"; >> ALTER TYPE >> SET search_path =3D "sde", pg_catalog; >> SET >> CREATE FUNCTION "st_envelope_in"(cstring) RETURNS st_envelope >> LANGUAGE "c" IMMUTABLE STRICT >> AS 'st_geometry', 'ST_ENVELOPE_In'; >> psql:pg_upgrade_dump_db.sql:371910: ERROR: duplicate key value violates >> unique constraint "pg_type_oid_index" >> DETAIL: Key (oid)=3D(1407909) already exists. >> >> Again, any help that you could provide would be greatly appreciated. > >So have you already installed the GIS stuff into the 9.2 cluster before >the upgrade? I have installed PostGIS 1.5.8 and the st_geometry.so file that ESRI requires into the 9.2 directory (/usr/pgsql-9.2/lib). pg_upgrade wouldn't proceed as far as it did without doing that. I received your other email and will try the upgrade again and compare the OIDs in new and old. I'll email the list again once I've done that. Thanks again for your help. >> John >> > > >--=20 >Adrian Klaver >adrian.klaver@gmail.com --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general