How to estimate disk space requirements for flex output in osm2pgsql 2.0.0? #2262
Unanswered
wcedmisten
asked this question in
Q&A
Replies: 2 comments
|
There are some numbers here in the manual. https://osm2pgsql.org/doc/manual.html#sizing |
0 replies
|
For the flex output, it depends on the tables. The upper end of the values in the manual would be for something like OpenStreetMap Carto, while something like what you have would be very small. If you've run it on the planet pre-filtered with osmium then the flex tables will take the same amount of space when run directly on the planet. If you're running in slim mode you will need space for the slim tables and flat nodes. Compared to those the restaurants will be a rounding error. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I'm running osm2pgsql with a flex output for the planet file (77GB PBF). I'm running this on a VPS with a mounted volume, where I pay by the GB. I'm wondering how much space PostgreSQL needs to run:
The flex output I'm using is meant to extract all restaurants (nodes, ways, or relations) from the planet.
I've done something similar by running
osmium tags-filterwithnwr/amenity=restaurantand the output is only ~300MB. But now that I'm running osm2pgsql directly on the planet file, I'm trying to figure out how much disk space is needed to run osm2pgsql directly.Appendix
/osm2pgsql.lua
All reactions