A consistent read snapshot taken once for each statement.

A plain read keeps its statement snapshot

In PostgreSQL Read Committed, an ordinary table read uses a snapshot established for that statement. Another transaction can commit while the read is running, yet the table scan continues using its original visibility boundary. The next statement can see the new commit. This explains how one transaction can obtain individually consistent answers that differ between statements, without either statement observing an uncommitted intermediate update. ...

May 31, 2027 · 4 min · XB Field Notes