PostgreSQL에서의 트랜잭션과 오류 처리
Jason Myers
Instructor
| 격리 수준 | Dirty Read | Nonrepeatable Read | Phantom Read | 직렬화 이상 |
|---|---|---|---|---|
| Read Uncommitted | 보호됨 (PostgreSQL) | 취약 | 취약 | 취약 |
| Read Committed | 보호됨 | 취약 | 취약 | 취약 |
| Repeatable Read | 보호됨 | 보호됨 | 보호됨 (PostgreSQL) | 취약 |
| Serializable | 보호됨 | 보호됨 | 보호됨 | 보호됨 |
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;
PostgreSQL에서의 트랜잭션과 오류 처리