Change a schema without confusing it with its rows
Read PostgreSQL 18 ALTER, constraint and dependency changes while separating schema definition from row mutation and object removal. SQL mutations and schema evolution · Databases.
A table change can redefine future rows, reject data that was previously accepted, or remove an object that other objects need. Treat the schema graph as a dependency contract before issuing the command.
What you will learn
- Distinguish ALTER from row mutations and object removal
- Predict default and constraint effects on existing and future rows
- Inspect dependency boundaries before choosing RESTRICT or CASCADE
Lesson outline
- Alter the table definition
- Validate constraints and defaults
- Remove an object with its dependencies in view
18 minutes · 2 scenes · 0 predict checks · 11 quiz questions
The full lesson is available with Premium.