Re: Problem with locks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with locks
Дата
Msg-id 23747.1186934627@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with locks  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Problem with locks
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> I've written a synthetic test program to check for lost semaphore wakeups.

Seems to me this proves nothing much, since it doesn't use the same SysV
semaphore API PG does.  Please adjust so that it looks more like our
code --- in particular there should be multiple processes having
semaphores in the same semid group.

Also, I think you have race conditions at shutdown --- the appearance of
the "thread %d lost a wakeup" message would not convince me there was
a bug in the least.  You need to make sure the workers exit at a known
point in their loop.
        regards, tom lane


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Problem with locks
Следующее
От: Bertram Scharpf
Дата:
Сообщение: Re: Wrote a connect-by feature