Amazon Aurora DSQL now supports foreign key constraints

Posted on: Aug 27, 2026

Amazon Aurora DSQL now lets you add foreign key constraints to new and existing tables. Aurora DSQL is a serverless, distributed SQL database with PostgreSQL compatibility and active-active multi-Region availability.

You can now express your application's rules about how tables reference each other as FOREIGN KEY constraints in your Aurora DSQL cluster. Declare, for example, that a customer's primary address must reference an existing row in your address table. Aurora DSQL then refuses any write that would leave that customer pointing at an address that no longer exists. You choose what happens when a referenced row is deleted or updated, with the options NO ACTION, RESTRICT, CASCADE, SET NULL, and SET DEFAULT.

This feature is available in all AWS Regions where Aurora DSQL is available. To learn more, see working with foreign key constraints and the CREATE TABLE foreign key syntax in the Aurora DSQL User Guide.