Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Adding osm data to Postgres via Osm2pgsql : duplicate key value violates unique constraint

$
0
0

I’m trying to import osm global world data into a database created in postgreSQL but after a while of processing, I’ve got this error :

Reading in file: E:planet-latest.osmplanet-latest.osm
Processing: Node(1873580k) Way(0k) Relation(0k)COPY_END for COPY planet_osm_node
s FROM STDIN;
 failed: ERREUR:  la valeur d'une cl├® dupliqu├®e rompt la contrainte unique ┬½
planet_osm_nodes_pkey ┬╗
CONTEXT:  COPY planet_osm_nodes, ligne 1758128898 : « 2147483647       68830134
7       -16699132       N ┬╗

Error occurred, cleaning up

I read that I have to remove the slim mode but when I do that, another error appeared and tell me I don’t have RAM enough.
Have you got any idea?


Viewing all articles
Browse latest Browse all 1138