Search Postgresql Archives

Re: Backup Restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
To: "Bob Pawley" <rjpawley@xxxxxxx>
Cc: "Shoaib Mir" <shoaibmir@xxxxxxxxx>; "Postgresql" <pgsql-general@xxxxxxxxxxxxxx>
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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux