Re: BUG #2466: lock issues...

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: BUG #2466: lock issues...
Дата
Msg-id e610an$263h$1@news.hub.org
обсуждение исходный текст
Ответ на BUG #2466: lock issues...  ("P.P.S. Narayan" <ppsnarayan@lucent.com>)
Список pgsql-bugs
""P.P.S. Narayan"" <ppsnarayan@lucent.com> wrote
>
> However, there are a bunch of http requests that come in after the hanging
> request, which get deadlocked on the locks held by the hanging request. AS
> far as I have read, there is a lock_timeout parameter in postgresql config
> file to timeout after 1s. But none of the latter http requests timeout.
>

There is a deadlock_timeout parameter in the configure file, which is "the
time in milliseconds to wait on lock before checking for deadlock." If a
deadlock is resolved, you will see an error message like "deadlock detected"
with some details. Also, you can see current lock status via pg_locks view
to see "information about the locks held by open transactions within the
database server". More details can be found in the docs.

Regards,
Qingqing

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

Предыдущее
От: "samir"
Дата:
Сообщение: BUG #2469: Error in connection to the server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2467: Documentation