Re: Fwd: BUG #17017: Two versions of the same row of records are returned in one query

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Fwd: BUG #17017: Two versions of the same row of records are returned in one query
Дата
Msg-id CAH2-WznF4rHqCZWkTHi7XAcNxp80W9DkYLuQ9Mp6ZusN9N2rnQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re:Fwd: BUG #17017: Two versions of the same row of records are returned in one query  ("李可强" <52194501011@stu.ecnu.edu.cn>)
Ответы Re:Re: Fwd: BUG #17017: Two versions of the same row of records are returned in one query
Список pgsql-bugs
On Wed, May 19, 2021 at 12:27 AM 李可强 <52194501011@stu.ecnu.edu.cn> wrote:
> There is no need to return the old version written by committed transactions. The query result fo Session B is very
confusing!

FWIW I think that it's a matter of how the standard is interpreted.
You expect something that Kyle Kingsbury called "Adya repeatable
read". This interpretation of RR allows an application which only
accesses records by primary key to get serializable execution.
Essentially, the primary key is special in a system that uses
traditional two-phase locking (or something closer to it than the
Postgres model). But a predicate on the PK is not special in Postgres.

--
Peter Geoghegan



В списке pgsql-bugs по дате отправления: