Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Every single time I've seen a primary key being defined with a natural key, it turned out that this set of attributes wasn't as immutable as we thought actually and it caused a world of pain.

Yep, happens to the best of us. Never mess around with this, just use a bigserial.



(Or other things like UUIDs, which I would not use, are still way better than semantic keys.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: