Closed matzesoft closed 3 years ago
First: The osm2pgsql version you are using is waaay to old. Please use the current release 1.3.0
Second: You need to tune your database. The section in the manual isn't finished yet, but this should give you some ideas.
Thanks! Now I was able to extract my data correctly. I still got some hints about too frequently checkpoints but the process still finished.
I followed a tutorial by TileMill on which a download link was to install osm2psql so I was sure I had the newest version and didn't checked back.
About second: I actually looked into the docs but as you already realized, they are kinda confusing currently. So good luck with the new website!
Hey, I am trying to import some OSM data to my PostgreSQL 13 database, named
osm_bw
. (I am definitely a beginner with Postgre, so stay cool with me for any stupid mistakes.)Command:
$ osm2pgsql -c -G -s -U matze -d osm_bw ./baden-wuerttemberg-latest.osm.pbf
Output:
But after that the process is stuck - I even let my PC run for 2 days but still nothing happened. So I went deeper into looking what the problem is and started by using the
.bz2
-format instead of.obf
, but still the same here. After that I just used a different map to test if my data wasn't ok. I used a quite small map in the thought of making testing faster but for my surprise didn't run into any errors or problems with this map anymore. So I thought of checking the database and took a look into thepostgresql.log
file:I went into the
postgresql.conf
file and tried around with some different values formax_wal_size
. But even setting it from the default of 1GB to 10GB didn't made a difference. So I just went completely crazy and set the value to 10000GB and... TADA! No hints of to checkpoints occurred anymore and I thought I made it - well no. The errorcanceling autovacuum task
still happend aftercompleted planet_osm_polygon
was printed out.And this is my final problem. I researched for some solutions but didn't find a lot I could do. Any tips or help are appreciated. Thanks in advance!