Re: FOR SHARE vs FOR UPDATE locks

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: FOR SHARE vs FOR UPDATE locks
Дата
Msg-id 1164998581.25371.13.camel@dogma.v10.wvs
обсуждение исходный текст
Ответ на Re: FOR SHARE vs FOR UPDATE locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2006-12-01 at 02:46 -0500, Tom Lane wrote:
> Michael Paesold <mpaesold@gmx.at> writes:
> > Now seriously, isn't this a perfectly feasible scenario? E.g. the outer
> > transaction acquires a shared lock because of foreign key constraints, and
> > the sub transaction later wants to update that row?
>
> Yeah, it's not implausible.  But the only way I can see to implement
> that is to upgrade the outer xact's shared lock to exclusive, and that
> doesn't seem real cool either.
>

If it's a plausible enough sequence of events, is it worth adding a note
to the "migration" section of the release notes?

Regards,
    Jeff Davis


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FOR SHARE vs FOR UPDATE locks
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FOR SHARE vs FOR UPDATE locks