Would you like to copy the permanent link to your clipboard?
Permanent link:
https://help.openstreetmap.org/questions/56832/configuring-osm2pgsql-to-import-objects-with-some-particular-attributes-only-and-all-dependent-objects/56841