Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit - Mailing list pgsql-general

From Magnus Hagander
Subject Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit
Date
Msg-id 471D0BCE.8020100@hagander.net
Whole thread Raw
In response to Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit
List 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 by date:

Previous
From: "Trevor Talbot"
Date:
Subject: Re: [HACKERS] 8.2.3: Server crashes on Windows using Eclipse/Junit
Next
From: Tom Lane
Date:
Subject: Re: unicode searches failing that use % and LIKE operators