Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E046E4764AF for ; Mon, 16 Sep 2002 16:48:26 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id 3D9D6476444 for ; Mon, 16 Sep 2002 16:48:26 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17r2nD-0007uK-00 for ; Mon, 16 Sep 2002 16:48:27 -0400 Date: Mon, 16 Sep 2002 16:48:27 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: psql database recovery error Message-ID: <20020916164827.X4394@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <6064f39b.0209120110.4b0cb6fe@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <6064f39b.0209120110.4b0cb6fe@posting.google.com>; from pgomez@freesurf.ch on Thu, Sep 12, 2002 at 02:10:19AM -0700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/188 X-Sequence-Number: 5727 On Thu, Sep 12, 2002 at 02:10:19AM -0700, pgomez wrote: > Hi everybody, > > when I'm trying to recover the database using the command "psql > database < database.file" I'm getting the error: > > "ERROR: copy line 1. Cannot insert duplicate key into unique index > table_pkey > lost synchronization with server, resetting connection" Did you pg_dump with -c? Maybe the old data is in the database, so you can't re-insert it? A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110