Re: Locking question?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Locking question?
Дата
Msg-id 20070129195800.GG14134@alvh.no-ip.org
обсуждение исходный текст
Ответ на Locking question?  ("Shoaib Mir" <shoaibmir@gmail.com>)
Ответы Re: Locking question?  ("Shoaib Mir" <shoaibmir@gmail.com>)
Re: Locking question?  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-general
Shoaib Mir wrote:
> While debugging an application, I just wanted to confirm from the list here:
>
> Suppose I have a long running transaction which has a few updates and
> inserts running on some specific tables which means it has acquired
> Exclusive locks too during the transaction on specific table but if just
> before commit the client app crashes and the commit is never sent, will the
> Exclusive locks be automatically released?

Yes  (assuming the backend dies in the process, which may not happen if
the app dies silently and while not waiting for anything from the
server).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Shoaib Mir"
Дата:
Сообщение: Locking question?
Следующее
От: "Jeremy Haile"
Дата:
Сообщение: Re: Limit on number of users in postgresql?