Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!
От | Heikki Linnakangas |
---|---|
Тема | Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers! |
Дата | |
Msg-id | 4C6D58EA.20707@enterprisedb.com обсуждение исходный текст |
Ответ на | Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers! (Alvaro Herrera <alvherre@commandprompt.com>) |
Список | pgsql-hackers |
On 19/08/10 18:08, Alvaro Herrera wrote: > Excerpts from Heikki Linnakangas's message of jue ago 19 02:02:34 -0400 2010: >> On 19/08/10 04:46, Robert Haas wrote: > >>> And so far we haven't seen a patch for that. >>> Somebody write one. And then let's get it reviewed and committed RSN. >> >> Fujii is on vacation, but I've started working on it. The two issues >> with Fujii's latest patch are that it would not respond promptly on >> platforms where signals don't interrupt sleep, and it suffers the >> classic race condition that pselect() was invented for. I'm going to >> replace pg_usleep() with select(), and use the so called "self-pipe >> trick" to get over the race condition. I have that written up but I want >> to do some testing and cleanup before posting the patch. > > Hmm, IIRC the self-pipe trick doesn't work on Windows, mainly because > select() doesn't handle pipes, only sockets. You may need some extra > hack to make it work there. That's fine, we can do the naive set-a-flag implementation on Windows because on Windows our "signals" are only delivered at CHECK_FOR_INTERRUPTS(), so we don't have the race condition to begin with. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: