Re: BUG #5036: Advisory locks have unexpected behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5036: Advisory locks have unexpected behavior
Дата
Msg-id 8551.1252188149@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5036: Advisory locks have unexpected behavior  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: BUG #5036: Advisory locks have unexpected behavior  ("Dennis C. Seran" <dseran@novonics.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Dennis Seran wrote:
>> - The above result happens when all 3 clients are on the same machine.  If
>> the same steps were followed, but this time with clients A and B on a RHEL
>> machine and the client C and the server on an XP machine, the result is a
>> bit different.  The above step results in Client B going into the queue as
>> well as Client C even though Client A currently holds the shared lock.
>> (AGAIN, SHOULDN'T THIS CLIENT BE ABLE TO OBTAIN THE SHARED LOCK?)

> I think this sounds like a bug.

It's really, really, really hard to believe that the behavior of
advisory locks would vary depending on where the client is located.

What I think is more likely is that there was some pilot error involved,
such as entering "pg_try_advisory_lock(12345)" instead of
"pg_try_advisory_lock_shared(12345)".  Another line of thought is that
the client code being used on the RHEL machine might not be the same as
what is on the XP machine, and is issuing slightly different commands.

            regards, tom lane

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

Предыдущее
От: "Kamil Roman"
Дата:
Сообщение: BUG #5039: 'i' flag i in regexp_replace ignored for polish letters
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5034: plperlu problem with gethostbyname