Does PostgreSQL provide a built-in optimistic concurrency control mechanism such as SQL Server’s Read Committed Snapshot Isolation? Readers can read all the rows without blocking, but writes will block and fail if row was modified during the transaction.
Edit: Writes don’t actually ‘block and fail’ under RCSI but rather just block.