This is my thoughts exactly. I'm happy with my salary because it enables me to live comfortably and purchase the things that I want. What other people make doesn't directly factor into it at all (not withstanding the fact that prices usually follow the average income, which affects my purchasing power).
Comparing incomes and constantly thinking about what you _could_ be making just leads up to never being satisfied with any kind of salary in the long run.