Hello Ian, I must apologize, that was my fault. Of course, you are right I must not remove the "type" tag. Just added the "type" line to the filter, and osm2pgsql runs smoothly. :-) Thanks to you and to Jon! <osmfilter parameter file> --keep=all amenity=hospital emergency=yes --keep-tags=all amenity= building= emergency= name= ref= type=