Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TC9lg-00006Q-W8 for pgsql-sql@postgresql.org; Thu, 13 Sep 2012 13:47:45 +0000 Received: from mail-pz0-f46.google.com ([209.85.210.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TC9lf-0005xf-4z for pgsql-sql@postgresql.org; Thu, 13 Sep 2012 13:47:44 +0000 Received: by dady13 with SMTP id y13so1716952dad.19 for ; Thu, 13 Sep 2012 06:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vG6yNqy0eqx+WFpLrWS0lCEGCSB5ba7NpVTTFcdgLfQ=; b=fypf1aYqDfqR3B7oX/jUcAwHWsSzypjyk6sTJJ9TZTlwgKSOXzdPHJhMDproGoakhr X4PUGnmTXOjqRzP9PXS+ZX+VFtmg3DRXIKBL3Uo4UK/jLfr0+yoUMRzuRAnqaBTddsFi m/RTPvG1hRjSqrFC4ty1GJfB8wTbA5yC9OsYiDGRUMVI6pCMyoIJHnf65e6i7/jgbAOh QcLJQXDJLI/pLWE+AjHINAv4PzONk7MkJ0RSJrs0b2uf7RekpuNkkKxLpdlC0PCwYZaj jl3ftc3IgdH2ERwysImX3Ro93ulBVZAaiuW6nX4w6anQUgIoYUna71d2ern27VIXPjD8 LLJg== Received: by 10.68.218.196 with SMTP id pi4mr4705415pbc.128.1347544060734; Thu, 13 Sep 2012 06:47:40 -0700 (PDT) Received: from [192.168.0.3] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id sj5sm13112438pbc.30.2012.09.13.06.47.38 (version=SSLv3 cipher=OTHER); Thu, 13 Sep 2012 06:47:39 -0700 (PDT) Message-ID: <5051E39B.3080803@gmail.com> Date: Thu, 13 Sep 2012 06:46:03 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Kjell_=D8ygard?= CC: pgsql-sql@postgresql.org Subject: Re: pg_restore problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201209/32 X-Sequence-Number: 36834 On 09/12/2012 12:23 AM, Kjell Øygard wrote: > Morning guys... > > I have two servers , one with postgres 9.2rc1 and one with postgres > 9.1.4. I need to do a restore from a dump from 9.1.4 to 9.2rc1 and I get > this error: > > pg_restore: [archiver (db)] Error from TOC entry 177675; 2613 579519 > BLOB 579519 primar > pg_restore: [archiver (db)] could not execute query: ERROR: duplicate > key value violates unique constraint "pg_largeobject_metadata_oid_index" > DETAIL: Key (oid)=(579519) already exists. > Command was: SELECT pg_catalog.lo_create('579519'); > > This just keep repeat itself in the log. > > The command used is: pg_restore -O -U user -d database2 database2.dump > >dump.log 2>&1 & > > Appreciate any help Several things: 1) The production version of 9,2 is out(9.2.0). 2) When you did the dump from 9.1.4 did you use the 9.1.4 or 9.2 version of pg_dump? 3) What was the pg_dump command you used? > > -- > Rgds > Kjell Inge Øygard > Electronic Chart Centre > www.ecc.no > -- Adrian Klaver adrian.klaver@gmail.com