Re: foreign key locks, 2nd attempt

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: foreign key locks, 2nd attempt
Дата
Msg-id CA+TgmoYA4HdOTm-w7g73=NYXC4m5SYJMYtxazO67aKWOHOxv3g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: foreign key locks, 2nd attempt  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Mon, Mar 12, 2012 at 9:24 PM, Noah Misch <noah@leadboat.com> wrote:
> When we lock an update-in-progress row, we walk the t_ctid chain and lock all
> descendant tuples.  They may all have uncommitted xmins.  This is essential to
> ensure that the final outcome of the updating transaction does not affect
> whether the locking transaction has its KEY SHARE lock.  Similarly, when we
> update a previously-locked tuple, we copy any locks (always KEY SHARE locks)
> to the new version.  That new tuple is both uncommitted and has locks, and we
> cannot easily sacrifice either property.  Do you see a way to extend your
> scheme to cover these needs?

No, I think that sinks it.  Good analysis.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: foreign key locks, 2nd attempt
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Website stylesheet for local docs