I found problem: i was starting osm2pgsql under postgres user - when i started it from regular user - import was completed normally.