Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL? - Mailing list pgsql-general

From Christophe Pettus
Subject Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?
Date
Msg-id C53D7011-110C-4C78-A293-76355C1B2654@thebuild.com
Whole thread Raw
In response to SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?  (이현진 <jemie9812@gmail.com>)
List pgsql-general
> On Mar 30, 2025, at 21:44, 이현진 <jemie9812@gmail.com> wrote:
> Since PostgreSQL uses MVCC, I'm wondering what the best practice is for non-blocking reads,
> and whether there's an equivalent to dirty reads or READ UNCOMMITTED.

There are two different questions here.

1. Reads are not blocked in PostgreSQL by writers, even if another transaction has updated the row but not yet
committed.

2. There is no equivalent of a dirty read in PostgreSQL.  You can only read committed data (short of bypassing the
databaseand reading the disk directly). 


pgsql-general by date:

Previous
From: 이현진
Date:
Subject: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?
Next
From: "David G. Johnston"
Date:
Subject: Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?