Bird
0
0

In PostgreSQL, what characteristic best describes the REPEATABLE READ isolation level?

easy📝 Conceptual Q1 of 15
PostgreSQL - Transactions and Concurrency

In PostgreSQL, what characteristic best describes the REPEATABLE READ isolation level?

AIt locks all rows read to prevent any concurrent updates.
BIt allows dirty reads but prevents non-repeatable reads.
CIt ensures that all SELECT queries within a transaction see a consistent snapshot of the database.
DIt guarantees full serializability of concurrent transactions.
Step-by-Step Solution
Solution:
  1. Step 1: Understand REPEATABLE READ

    REPEATABLE READ provides a consistent snapshot for all reads within a transaction.
  2. Step 2: Analyze options

    It ensures that all SELECT queries within a transaction see a consistent snapshot of the database. correctly states the snapshot behavior; B is incorrect because dirty reads are not allowed; C is wrong as it does not lock all rows read; D is false because SERIALIZABLE isolation is stricter.
  3. Final Answer:

    It ensures that all SELECT queries within a transaction see a consistent snapshot of the database. -> Option C
  4. Quick Check:

    Snapshot isolation means repeatable reads [OK]
Quick Trick: REPEATABLE READ = consistent snapshot for all reads [OK]
Common Mistakes:
  • Confusing REPEATABLE READ with SERIALIZABLE isolation
  • Assuming dirty reads are allowed
  • Believing all rows are locked during reads

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes