snapshot-isolation · shipping · also SI

Snapshot isolation

Snapshot isolation gives a transaction a stable committed snapshot plus its own writes and prevents concurrent transactions that write the same data from both committing.

Related Observatory article: Read on hesela.com

It can permit write skew across different rows. PostgreSQL 18 uses this model for Repeatable Read, not its stronger Serializable level. A transaction snapshot is an isolation mechanism, not a storage backup. [1] [2]

In the 1995 definition, a transaction reads from the committed state at its Start-Timestamp and receives a Commit-Timestamp larger than any existing one. It commits only if no transaction that committed within that interval wrote data it also wrote, a rule called first-committer-wins that prevents lost updates. [1]

The same paper shows that snapshot isolation precludes anomalies A1, A2 and A3 yet allows A5B, so it is incomparable with locking Repeatable Read. In PostgreSQL 18 the snapshot is taken at the first non-transaction-control statement, and an update that meets a row changed by a concurrent committed transaction fails with a serialization error. Read-only transactions never hit that conflict. Before PostgreSQL 9.1, requesting Serializable gave this same behaviour. [1] [2]

Relations

related
Serializability, Write skew, Read-atomic isolation, Monotonic Atomic View, Linearizability, Logical database backup, Compare-and-swap, Serializable Snapshot Isolation, Read Committed isolation, Repeatable Read isolation, Hyder, Optimistic concurrency control, Multiversion concurrency control

Advantages

  • Readers do not wait for writers while their snapshot can still be maintained. [1]

Limitations

  • Even a read-only transaction can observe a state that matches no serial order, such as a completed batch header without one of its detail rows. [2]

Citations

  1. Hal Berenson et al. A Critique of ANSI SQL Isolation Levels. ACM SIGMOD 1995; MSR-TR-95-51, section 4.2. (accessed 2026-10-22)
  2. PostgreSQL 18 documentation, section 13.2: Transaction Isolation. (accessed 2026-10-22)

Further reading

  1. Storage consistency: ordering is not a transaction or a durability promise (accessed 2026-10-12)
Sources & caveats
  • berenson-isolation is the 1995 SIGMOD paper by Berenson et al., read in section 4.2 on the access date.
  • postgres-isolation is PostgreSQL 18 documentation section 13.2, read in the Repeatable Read and Serializable subsections.
  • 1995, A1, A2, A3 and A5B come from berenson-isolation. 9.1 comes from postgres-isolation.

JSON: /data/terms/snapshot-isolation.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Snapshot isolation. Hesela. 2026-11-15. https://hesela.dev/terms/snapshot-isolation/