Re: Read Uncommitted

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: Read Uncommitted
Дата
Msg-id
20191219022225.e4qjtezrjcunnpgx@alap3.anarazel.de
Ответ на
Re: Read Uncommitted (Simon Riggs)
Список
Дерево обсуждения
Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Tom Lane <tgl@sss.pgh.pa.us>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Robert Haas <robertmhaas@gmail.com>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Tom Lane <tgl@sss.pgh.pa.us>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Andres Freund <andres@anarazel.de>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Andres Freund <andres@anarazel.de>
Re: Read Uncommitted Craig Ringer <craig@2ndquadrant.com>
Re: Read Uncommitted Tom Lane <tgl@sss.pgh.pa.us>
Re: Read Uncommitted Craig Ringer <craig@2ndquadrant.com>
Re: Read Uncommitted Mark Dilger <hornschnorter@gmail.com>
Re: Read Uncommitted Mark Dilger <hornschnorter@gmail.com>
Re: Read Uncommitted Andres Freund <andres@anarazel.de>
Re: Read Uncommitted Robert Haas <robertmhaas@gmail.com>
Re: Read Uncommitted Stephen Frost <sfrost@snowman.net>
Re: Read Uncommitted "Finnerty, Jim" <jfinnert@amazon.com>
Re: Read Uncommitted Tom Lane <tgl@sss.pgh.pa.us>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Mark Dilger <hornschnorter@gmail.com>
Read Uncommitted regression test coverage Mark Dilger <hornschnorter@gmail.com>
Re: Read Uncommitted regression test coverage Tom Lane <tgl@sss.pgh.pa.us>
Re: Read Uncommitted regression test coverage Mark Dilger <hornschnorter@gmail.com>
Re: Read Uncommitted Heikki Linnakangas <hlinnaka@iki.fi>
Re: Read Uncommitted Robert Haas <robertmhaas@gmail.com>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Bernd Helmle <mailings@oopsware.de>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted David Steele <david@pgmasters.net>
Re: Read Uncommitted Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: Read Uncommitted Simon Riggs <simon@2ndquadrant.com>
Re: Read Uncommitted Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Hi,

On 2019-12-18 18:06:21 +0000, Simon Riggs wrote:
> On Wed, 18 Dec 2019 at 17:35, Robert Haas  wrote:
> 
> > On Wed, Dec 18, 2019 at 10:18 AM Simon Riggs 
> > wrote:
> > > This was my first concern when I thought about it, but I realised that
> > by taking a snapshot and then calculating xmin normally, this problem would
> > go away.
> >
> > Why? As soon as a transaction aborts...
> >
> 
> So this is the same discussion as elsewhere about potentially aborted
> transactions...
> AFAIK, the worst that happens in that case is that the reading transaction
> will end with an ERROR, similar to a serializable error.

I don't think that's all that can happen. E.g. the toast identifier
might have been reused, and there might be a different datum in
there. Which then means we'll end up calling operators on data that's
potentially for a different datatype - it's trivial to cause crashes
that way. And, albeit harder, possible to do more than that.

I think there's plenty other problems too, not just toast. There's
e.g. some parts of the system that access catalogs using a normal
snapshot - which might not actually be consistent, because we have
various places where we have to increment the command counter multiple
times as part of a larger catalog manipulation.

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Amit Kapila
Дата:
FAQ