4.2.1. osm2pgsql
osm2pgsql
is used by many projects, including the OpenStreetMap Carto style used to generate the default map tiles on the OpenStreetMap website itself.
Databases imported by it are usually well suited for use in combination with the PostGIS data source plugin.
For details see: https://osm2pgsql.org/