Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit
Дата
Msg-id 471D0BCE.8020100@hagander.net
обсуждение исходный текст
Ответ на Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> I was planning to make it even easier and let Windows do the job for us,
>> just using RegisterWaitForSingleObject(). Does the same - one thread per
>> 64 backends, but we don't have to deal with the queueing ourselves.
>> Should be rather trivial to do.
>
> How can that possibly work?  Backends have to be able to run
> concurrently, and I don't see how they'll do that if they share a stack.

We're not talking about the backends, we're talking about the backend
waiter threads whose sole purpose is to wait for a backend to die and
then raise a signal when it does. We can easily have the kernel wait for
a whole bunch of them at once, and have it call our callback function
whenever anyone of them dies.

//Magnus

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

Предыдущее
От: "Trevor Talbot"
Дата:
Сообщение: Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unicode searches failing that use % and LIKE operators