Re: SELECT FOR UPDATE and LIMIT 1 behave oddly

Поиск
Список
Период
Сортировка
От Andrea Suisani
Тема Re: SELECT FOR UPDATE and LIMIT 1 behave oddly
Дата
Msg-id 4193F8F7.9030002@opinioni.net
обсуждение исходный текст
Ответ на Re: SELECT FOR UPDATE and LIMIT 1 behave oddly  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-bugs
tnks for the hint ;)
I'll try something similar here.

Andrea

Josh Berkus wrote:
> Andrea,
>
>
>>i'm sorry for the curiosity.... but
>>could you share, if it's possible, this workaround? ;)
>>(if it's not the one you describe at the beginning thread
>>  e.g. don't use LIMIT 1)
>
>
> Well, we actually roped in the pg_locks view to do a "SELECT the first row not
> already locked for update".    Then added some code on the client end for
> error handling, like race conditions and no rows being returned, both of
> which happen in production.
>

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

Предыдущее
От: andrea suisani
Дата:
Сообщение: Re: SELECT FOR UPDATE and LIMIT 1 behave oddly
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Unable to run PostgreSQL 8 beta 3 on Windows XP Home