SSI freezing bug

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема SSI freezing bug
Дата
Msg-id 523C29A8.20904@vmware.com
обсуждение исходный текст
Ответы Re: SSI freezing bug  (Andres Freund <andres@2ndquadrant.com>)
Re: SSI freezing bug  (Hannu Krosing <hannu@2ndQuadrant.com>)
Список pgsql-hackers
Hi,

Prompted by Andres Freund's comments on my Freezing without Write I/O
patch, I realized that there's there's an existing bug in the way
predicate locking handles freezing (or rather, it doesn't handle it).

When a tuple is predicate-locked, the key of the lock is ctid+xmin.
However, when a tuple is frozen, its xmin is changed to FrozenXid. That
effectively invalidates any predicate lock on the tuple, as checking for
a lock on the same tuple later won't find it as the xmin is different.

Attached is an isolationtester spec to demonstrate this.

- Heikki

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: logical changeset generation v6
Следующее
От: Andres Freund
Дата:
Сообщение: Re: dynamic shared memory