I figure they're probably like me; meaning at one time they probably knew my name but due to years of drinking and other forms of brain abuse, they've forgotten my name but don't wanna be rude. So "hey" is probably better than nothing! I often use the phrase "what's up dude?" or "how's it going?" to express the fact I am recognizing them without actually remembering their name!