Re: MultiXactId error after upgrade to 9.3.4

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: MultiXactId error after upgrade to 9.3.4
Дата
Msg-id 20140331121912.GU9567@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: MultiXactId error after upgrade to 9.3.4  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: MultiXactId error after upgrade to 9.3.4  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund wrote:
> On 2014-03-31 08:54:53 -0300, Alvaro Herrera wrote:
> > My conclusion here is that some part of the code is failing to examine
> > XMAX_INVALID before looking at the value stored in xmax itself.  There
> > ought to be a short-circuit.  Fortunately, this bug should be pretty
> > harmless.
> > 
> > .. and after looking, I'm fairly sure the bug is in
> > heap_tuple_needs_freeze.
> 
> heap_tuple_needs_freeze() isn't *allowed* to look at
> XMAX_INVALID. Otherwise it could miss freezing something still visible
> on a standby or after an eventual crash.

Ah, you're right.  It even says so on the comment at the top (no
caffeine yet.)  But what it's doing is still buggy, per this report, so
we need to do *something* ...

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: MultiXactId error after upgrade to 9.3.4
Следующее
От: Andres Freund
Дата:
Сообщение: Re: MultiXactId error after upgrade to 9.3.4