Database constraints in Postgres: The last line of defense

Constraints are an extremely powerful construct for your database. And when it comes to your database, constraints are the last line of defense. Constraints are essentially rules that your data has to follow.