Transactions et gestion des erreurs dans PostgreSQL
Jason Myers
Instructor
| Niveau d'isolement | Lecture sale | Lecture non reproductible | Lecture fantôme | Anomalie de sérialisation |
|---|---|---|---|---|
| Read Uncommitted | Protégé (PostgreSQL) | vulnérable | vulnérable | vulnérable |
| Read Committed | Protégé | vulnérable | vulnérable | vulnérable |
| Repeatable Read | Protégé | Protégé | Protégé (PostgreSQL) | vulnérable |
| Serializable | Protégé | Protégé | Protégé | Protégé |
SERIALIZABLE
REPEATABLE READ



START TRANSACTION ISOLATION LEVEL REPEATABLE READ;UPDATE inventory SET quantity = quantity - 4 WHERE name = 'macaron'; SAVEPOINT first;UPDATE inventory SET quantity = quantity - 12 SAVEPOINT second; COMMIT;
Transactions et gestion des erreurs dans PostgreSQL