Guia de entrevista · SQL / PostgreSQL

What are transaction isolation levels?

do caderno de estudos · atualizado em 18 de julho de 2026
Para quem vai encarar entrevista de SQL / PostgreSQL2 min

Se a vaga pede SQL / PostgreSQL, a chance de algo assim cair na tech screen é alta. A resposta está em inglês de propósito: treine do jeito que o jogo é jogado.

A resposta, como você fala na entrevista

How much one running transaction can SEE of another. From weakest to strongest:
Read Uncommitted → allows dirty reads (seeing data another transaction hasn't committed yet).
Read Committed (Postgres DEFAULT) → no dirty reads, but re-running the same query inside the transaction can return different rows (non-repeatable read).
Repeatable Read → same rows guaranteed within the transaction; in Postgres this also blocks most phantom reads (NEW rows appearing that match your WHERE).
Serializable → transactions behave as if they ran one at a time. Safest, slowest, can force retries.

Say: "Postgres defaults to Read Committed; I raise it only when the business logic demands it — e.g., money transfers."

Ler é fácil. Falar isso em inglês, sob pressão, com alguém avaliando, é outra história. No VagaGringa esse tópico vira flashcard com repetição espaçada, cai em quiz e entra no simulado.

Treinar este tópico no app