Although there is a osm wiki page that attempts to shed light on the different tables which are created within a postgres/postgis database there is something that is not quite made clear:
Is the data in table planet_osm_roads
duplicate? (i.e. would it provide anything that could not also be retrieved however indirectly from the other tables planet_osm_line
,planet_osm_point
,planet_osm_polygon
?
Bonus: If as assumed this is duplicate stuff is there a way to prevent its creation in the first place (assuming it increases the costs both in time and memory and disk space)?
planet_osm_roads
table creation is hardcoded; it's a collection ofhighway
tagged relations for low-zoom rendering, all 'duplicates'. either drop that table, check out the--output multi
backend configuration options (you can freely setup the output table structure yourself, albeit manually), or look into other tools: ogr2ogr, Imposum, Osmium, Osmosis, osm2po, osm2postgis, osm2postgres, to name a few classics.