postgresqlsequelize.jsisolation-leveltransaction-isolationrowlocking

What is the default transaction row level in Postgres and/or LOCK used by default in Sequelize.js


What is the default row-level lock mode used in PostgreSQL? And because the question is related to Sequelize ORM, so, it would be nice to know which mode is used by default to avoid or modify my queries.


Solution

  • The default isolation level in Postgres is read committed.

    Quote from the manual

    Read Committed is the default isolation level in PostgreSQL