Re: NOWAIT doesn't work

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: NOWAIT doesn't work
Дата
Msg-id 509156A5.4090900@agliodbs.com
обсуждение исходный текст
Ответ на Re: NOWAIT doesn't work  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
> Now, is this the right behavior?  I'm not sure.  But I know for certain
> that making it behave as you expect is very tricky.  The table lock is
> grabbed during parse analysis; we'd have to postpone grabbing the lock
> until after we have had the chance to notice that there's a FOR UPDATE
> clause for the table with a NOWAIT option attached.

I think our present behavior violates POLS.  Users would logically
expect NOWAIT to work for all types of locks.  If we get LOCK TIMEOUT
working in 9.3, this will apply there as well.

No question that changing that would be a new feature, though.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Christian Kruse
Дата:
Сообщение: Re: Re: [HACKERS] Patch für MAP_HUGETLB for mmap() shared memory
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Proposal for Allow postgresql.conf values to be changed via SQL