/ home / computer / postgresql / postgresql-for-mysql-admins / .
MySQL isolation levels: READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SERIALIZABLE
PostgreSQL isoaltion levels: READ COMMITTED, REPEATABLE READ, SERIALIZABLE
The standard says SERIALIZABLE should be default.
Sources:
MySQL to PostgreSQL migration problems we faced:
INSERT IGNORE does NOT exist ➜ use just INSERT instead.TINYINT does NOT exist ➜ SMALLINTBLOB does NOT exist ➜ BYTEAUNSIGNED does NOT exist ➜ use signed with possibly next bigger data type?DOUBLE is called ➜ DOUBLE PRECISION in PostgreSQLDATETIME does NOT exist ➜ TIMESTAMP\user\ ➜ "user"AUTO_INCREMENT INT does NOT exist ➜ use SERIALENGINE = InnoDB does NOT exist ➜ just remove itend ➜ "end"bla(42) ➜ substring(bla, 1, 42)CREATE TABLE statement ➜ use CREATE INDEX ... ON ... (...); instead.CREATE TABLE ... LIKE ... is different ➜ use CREATE TABLE ... (LIKE ... INCLUDING ALL); instead.https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-TEMPORARY
https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED