Transacties en foutafhandeling in PostgreSQL
Jason Myers
Instructor
| Isolatieniveau | Dirty Read | Nonrepeatable Read | Phantom Read | Serialisatie-anomalie |
|---|---|---|---|---|
| Read Uncommitted | Beschermd (PostgreSQL) | kwetsbaar | kwetsbaar | kwetsbaar |
| Read Committed | Beschermd | kwetsbaar | kwetsbaar | kwetsbaar |
| Repeatable Read | Beschermd | Beschermd | Beschermd (PostgreSQL) | kwetsbaar |
| Serializable | Beschermd | Beschermd | Beschermd | Beschermd |
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;
Transacties en foutafhandeling in PostgreSQL