Hacker News new | past | comments | ask | show | jobs | submit login

Yes, in PG at least an index is created, otherwise the unique check would become prohibitive.



I think the question is more on whether a duplicate index would be created instead of having the unique constraint and primary key designation on the same column share an index




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

Search: