
How does PostgreSQL ensure that shared lock doesn’t starve requests for exclusive / update locks?
PostgreSQL uses a “multi-version concurrency control” (MVCC) approach to ensure that shared locks don’t starve requests for exclusive or update locks. Under MVCC, each transaction works with a “snapshot” of the database state at a […]