public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christophe Pettus <[email protected]>
To: 이현진 <[email protected]>
Cc: [email protected]
Subject: Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?
Date: Sun, 30 Mar 2025 22:02:18 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAH0WOV4JhR3OgjNg69h-ZY9o1ooWq=32aa4GrSL5a3y41nApHQ@mail.gmail.com>
References: <CAH0WOV4JhR3OgjNg69h-ZY9o1ooWq=32aa4GrSL5a3y41nApHQ@mail.gmail.com>



> On Mar 30, 2025, at 21:44, 이현진 <[email protected]> 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 database and reading the disk directly).





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox