Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?
Дата
Msg-id C53D7011-110C-4C78-A293-76355C1B2654@thebuild.com
обсуждение исходный текст
Ответ на SQL Server's WITH (NOLOCK) equivalent in PostgreSQL?  (이현진 <jemie9812@gmail.com>)
Список 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 по дате отправления: