Re: relcache refcount

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: relcache refcount
Дата
Msg-id 20276.1084536178@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: relcache refcount  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
Список pgsql-hackers
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> Why can't we keep all locks until main tx end ?

For committed subtransactions we have to do that, yes, but for aborted
subtransactions we must release.  Otherwise you can't implement a retry
loop around a potentially-deadlocking operation.

> (I am assuming that a deadlock will still break the whole tx)

Wrong.  We might as well not bother with the entire project.
        regards, tom lane


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

Предыдущее
От: pgsql@mohawksoft.com
Дата:
Сообщение: Re: [pgsql-hackers-win32] Sync vs. fsync during
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: Bogus permissions display in 7.4