This README file provides a comparison of transaction isolation levels in PostgreSQL and MariaDB and how they relate to common transaction anomalies such as Dirty Read, Non-repeatable Reads, Phantom Reads, and Lost Update.
-
READ UNCOMMITTED:
- Dirty Read: Happened
- Non-repeatable Reads: Happened
- Phantom Reads: Happened
- Lost Update: Not Happened
-
READ COMMITTED:
- Dirty Read: Not Happened
- Non-repeatable Reads: Not Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened
-
REPEATABLE READ:
- Dirty Read: Not Happened
- Non-repeatable Reads: Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened
-
SERIALIZABLE:
- Dirty Read: Not Happened
- Non-repeatable Reads: Not Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened
-
READ UNCOMMITTED:
- Dirty Read: Happened
- Non-repeatable Reads: Happened
- Phantom Reads: Happened
- Lost Update: Not Happened
-
READ COMMITTED:
- Dirty Read: Not Happened
- Non-repeatable Reads: Not Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened
-
REPEATABLE READ:
- Dirty Read: Not Happened
- Non-repeatable Reads: Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened
-
SERIALIZABLE:
- Dirty Read: Not Happened
- Non-repeatable Reads: Not Happened
- Phantom Reads: Not Happened
- Lost Update: Not Happened