Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id F3DEE9F9CE3; Wed, 3 Jan 2007 14:44:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 56971-01; Wed, 3 Jan 2007 14:44:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id F2F269F931E; Wed, 3 Jan 2007 14:44:49 -0400 (AST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id BBC3A74A8F; Wed, 3 Jan 2007 18:44:48 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id A89BCFF04; Wed, 3 Jan 2007 18:44:47 +0000 (GMT) Message-ID: <459BF99F.3090005@archonet.com> Date: Wed, 03 Jan 2007 18:44:47 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: Bob Pawley Cc: Dave Page , Shoaib Mir , Postgresql Subject: Re: Backup Restore References: <000e01c72ab1$ceec0220$8e904618@owner> <45941B3B.8060708@postgresql.org> <002601c72ab8$97bc5640$8e904618@owner> <459423C1.70009@postgresql.org> <006001c72aec$2789cfe0$8e904618@owner> <4594CD6D.1050104@postgresql.org> <001001c72b7a$ba2e7600$8e904618@owner> <4595650F.7000504@postgresql.org> <001901c72b7f$5a5e29f0$8e904618@owner> <459A2D47.4020206@archonet.com> <009d01c72f62$14e98fe0$8e904618@owner> In-Reply-To: <009d01c72f62$14e98fe0$8e904618@owner> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/93 X-Sequence-Number: 106633 Bob Pawley wrote: > Looking through PGAdmin where would I find the spatial references that > the errror message references? >> Bob Pawley wrote: >>> Following is the error message on pg_restore:- >>> >>> "pg_restore: ERROR: duplicate key violates unique constraint >>> "spatial_ref_sys_pkey" >>> CONTEXT: COPY spatial_ref_sys, line 1: "2000 EPSG 2000 >>> PROJCS["Anguilla 1957 / British West Indies Grid",GEOGCS["Anguilla >>> 1957",DATUM["Angui..." Looking at this, you should have a table "spatial_ref_sys" with a primary key constraint "spatial_ref_sys_pkey" Find the table via the left-hand tree conrol and its details should be listed on the right-hand side. The primary key will be detailed at the top and bottom -- Richard Huxton Archonet Ltd