Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 10756 invoked from network); 27 Jul 2009 16:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jul 2009 16:47:52 -0000 Received: (qmail 61685 invoked by uid 500); 27 Jul 2009 16:48:56 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 61658 invoked by uid 500); 27 Jul 2009 16:48:56 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 61648 invoked by uid 99); 27 Jul 2009 16:48:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 16:48:56 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcjcu-cayenne-user-moved1@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 16:48:45 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MVTNA-0003eo-1J for user@cayenne.apache.org; Mon, 27 Jul 2009 16:48:24 +0000 Received: from cust.static.84-253-63-109.cybernet.ch ([84.253.63.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jul 2009 16:48:24 +0000 Received: from andreas by cust.static.84-253-63-109.cybernet.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jul 2009 16:48:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@cayenne.apache.org From: Andreas Hartmann Subject: Problem restoring dump with BLOBs Date: Mon, 27 Jul 2009 18:48:12 +0200 Lines: 29 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cust.static.84-253-63-109.cybernet.ch User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone, to import a new version of the schema, I create and restore a dump as follows: pg_dump --data-only --oids --file $dumpfile $db_name psql -1 […] $db_name < $schemafile psql -1 […] $db_name < $dumpfile However, when the dump is restored, I get the following error message: ERROR: duplicate key value violates unique constraint "pg_largeobject_loid_pn_index" I tried to clear the pg_largeobject table before restoring the dump, but this leads to errors like "PSQLException: ERROR: large object 23313 does not exist" when I access the data afterwards. Thanks a lot for any hints! -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01