pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reiser, John J. <Reiser@rowan.edu>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: duplicate OID issue when using pg_upgrade to move from 8.4 to 9.2
Date: Wed, 1 Jan 2014 12:31:51 -0500
Message-ID: <CEE9BA1B.1D299%reiser@rowan.edu> (raw)
In-Reply-To: <52C44FA9.2080500@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Adrian,


On 1/1/14, 12:26 PM, "Adrian Klaver" <adrian.klaver@gmail.com> 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 = 65,
>>      INPUT = spheroid_in,
>>      OUTPUT = spheroid_out,
>>      ALIGNMENT = double,
>>      STORAGE = plain
>> );
>> CREATE TYPE
>> ALTER TYPE "public"."spheroid" OWNER TO "reiser";
>> ALTER TYPE
>> SET search_path = "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)=(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
>>
>
>
>-- 
>Adrian Klaver
>adrian.klaver@gmail.com




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



view thread (24+ messages)  latest in thread

Message-ID: <CEE9BA1B.1D299%reiser@rowan.edu>
Permalink:  ../CEE9BA1B.1D299%25reiser@rowan.edu/
Also on:    postgresql.org/message-id/CEE9BA1B.1D299%reiser@rowan.edu

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Reiser@rowan.edu
  Subject: Re: duplicate OID issue when using pg_upgrade to move from 8.4 to 9.2
  In-Reply-To: <CEE9BA1B.1D299%reiser@rowan.edu>
  References: <52C44FA9.2080500@gmail.com> <CEE9BA1B.1D299%reiser@rowan.edu>

* 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