Create Foreign Keys Across Multiple Fields in Postgres

Share this video with your friends

Send Tweet

What if your foreign keys are more complex than a single field? Postgres lets you enforce foreign key constraints across multiple fields with a similar syntax to defining complex primary keys.