It would make more sense to publish lowest paid, highest paid, median and average salaries across the entire structure of the company. Plus data about other compensation in the form of bonuses, stock options, etc.
Or make all compensation public information for everyone. I believe in Norway you can see anyone's tax return, which isn't exactly the same because it aggregates all earnings from all sources into one, but it doesn't appear, as far as I can tell, to have had many ill effects.