PostGIS dump/restore fails with duplicate key in spatial_ref_sys
Dumping and restoring a database after CREATE EXTENSION POSTGIS fails with this:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 3174; 0 51657944 TABLE DATA spatial_ref_sys strk
pg_restore: [archiver (db)] COPY failed for table "spatial_ref_sys": ERROR: duplicate key value violates unique constraint "spatial_ref_sys_pkey"
DETAIL: Key (srid)=(7041) already exists.
CONTEXT: COPY spatial_ref_sys, line 1
Change History
(11)
Component: |
postgis → build/upgrade/install
|
Owner: |
changed from pramsey to strk
|
Owner: |
changed from strk to pramsey
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Owner: |
changed from pramsey to strk
|
Status: |
reopened → new
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
Same happens with trunk (2.3.0dev). 2.1.9dev is fine. Robe, I guess this is for you ? (or for Paul, as it might be due to spatial_ref_sys update)