Hacker News new | ask | show | jobs
by tummybug 2498 days ago
Genuine question, if usernames are unique what is the problem with using them as the primary key of the table instead of an arbitrary value from a sequence, you also get the bonus of not needing a unique constraint on the username column.