logoalt Hacker News

aidoslast Friday at 11:20 PM0 repliesview on HN

Not quite. It can reference any combination of columns with a unique index (of with the PK is by definition).