Databases · Flashcard
Do plain SELECT readers block writers in PostgreSQL?
Why this is the answer
Thanks to MVCC, plain reads never block UPDATE or DELETE (and writers don't block readers). SELECT takes no row locks (SELECT FOR UPDATE is the explicit exception), transaction wrapping doesn't change that, and indexes don't serialize readers with writers.
Read more in the docs