Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Backup Restore



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..." pg_restore: [archiver (db)] error returned by PQendcopy: 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..."
pg_restore: *** aborted because of error

Process returned exit code 1."

The GIS feature was removed from the PostgreSQL application before the project dump.

Anyone have any thoughts on how to get around this??

Bob


----- Original Message ----- From: "Dave Page" <dpage(at)postgresql(dot)org>
To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
Cc: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>; "Postgresql" <pgsql-general(at)postgresql(dot)org>
Sent: Friday, December 29, 2006 10:57 AM
Subject: Re: [GENERAL] Backup Restore


Bob Pawley wrote:
Hi Dave

I can get the restore working if I dump the project spelling out "*.backup" and not relying on the default.

However the restore is being aborted due to a pk error for the spatial coordinates. I've removed the gis feature from both applications but still get the error.

Any thoughts??

Nope, someone else will need to help with that I'm afraid. The exact error message would make it infinitely easier to help you though.

Regards, Dave





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group