That would be done by Osm2pgsql. This goes beyond switch2osm, but the Osm2pgsql software documentation is really good.