Re: 13.2.1. Read Committed Isolation Level - Mailing list pgsql-docs

From David G. Johnston
Subject Re: 13.2.1. Read Committed Isolation Level
Date
Msg-id CAKFQuwY2=UTnpcuzEhTFKwOHLafS-jUGtxf72R63mjGs66ROxQ@mail.gmail.com
Whole thread Raw
In response to 13.2.1. Read Committed Isolation Level  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: 13.2.1. Read Committed Isolation Level
List pgsql-docs
On Tue, Jul 16, 2024 at 7:06 AM PG Doc comments form <noreply@postgresql.org> wrote:
Or does it mean that contrary to Read
Committed Isolation Level, uncommitted changes from a parallel transaction
can affect the execution of an INSERT command?

This.  Because you are keying off of an unique index that has independent isolation mechanics.  Upon attempting to insert a row that will violate the unique constraint enforced by the index the system must wait to see whether the earlier transaction commits.  If it doesn't, the insert proceeds.  If it does, the conflict clause is evaluated - updating the now committed row (or just doing nothing if that option is specified.)

David J.

pgsql-docs by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: 13.2.1. Read Committed Isolation Level
Next
From: 周志勤
Date:
Subject: Re: Re: Mismatch for connection key/value pair between documentation and code?