# Working with foreign key constraints in Aurora DSQL

DevFeed: [Working with foreign key constraints in Aurora DSQL](<https://devfeed.tech/articles/working-with-foreign-key-constraints-in-aurora-dsql-63565.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/database/working-with-foreign-key-constraints-in-aurora-dsql/>)

Author: Rekha Reddy Anupati

Published: 2026-10-01T16:42:03Z

Content type: tutorial

Language: en

Sources: [AWS Database Blog](<https://devfeed.tech/sources/aws-database-blog.md>)

Topics: [DSQL](<https://devfeed.tech/topics/dsql.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [amazon-aurora](<https://devfeed.tech/tags/amazon-aurora.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [database](<https://devfeed.tech/tags/database.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [dsql](<https://devfeed.tech/tags/dsql.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [foreign-keys](<https://devfeed.tech/tags/foreign-keys.md>), [optimistic-concurrency](<https://devfeed.tech/tags/optimistic-concurrency.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

This tutorial explains how Aurora DSQL supports foreign key constraints, including immediate and deferred enforcement, adding constraints to existing tables, and optimistic concurrency control. It also covers schema design for scale and retry handling for transaction conflicts.

## Source excerpt

Amazon Aurora DSQL supports foreign key constraints, letting you enforce referential integrity directly in the database. This post covers defining foreign keys, immediate versus deferred enforcement, adding constraints to existing tables, and how optimistic concurrency control resolves conflicts in distributed workloads.