Re: lock timeout patch

Поиск
Список
Период
Сортировка
От Satoshi Nagayasu
Тема Re: lock timeout patch
Дата
Msg-id 40E0AAF6.6020106@noanet06.noanet.nttdata.co.jp
обсуждение исходный текст
Ответ на Re: lock timeout patch  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers
Robert Treat wrote:
>>I think statement_timeout and lock_timeout are different.
>>
>>If I set statement_timeout to 1000 to detect a lock timeout,
>>I can't run a query which takes over 1 sec.
>>
>>If a lock wait is occured, I want to detect it immediately,
>>but I still want to run a long-running query.
> 
> How is your problem not solved by NOWAIT?
> http://developer.postgresql.org/docs/postgres/sql-lock.html

I agree that it's one of the solutions when we use LOCK explicitly.
But LOCK does only lock a whole table, doesn't it?

-- 
NAGAYASU Satoshi <nagayasus@nttdata.co.jp>


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

Предыдущее
От: "Darko Prenosil"
Дата:
Сообщение: Re: improper call to spi_printtup ???
Следующее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: lock timeout patch