Skip to content

Glossary: PostgreSQL for Developers

ON DELETE

Also written: NO ACTION, RESTRICT, SET NULL

A foreign key option choosing what happens to linked rows when the row they point at is deleted: refuse (NO ACTION or RESTRICT), CASCADE, or SET NULL.

Where the book teaches it

Related terms

CASCADEforeign key constraint