Re: Process wakeups when idle and power consumption

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Process wakeups when idle and power consumption
Дата
Msg-id 4DC96B1A.5070604@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Process wakeups when idle and power consumption  (Peter Geoghegan <peter@2ndquadrant.com>)
Ответы Re: Process wakeups when idle and power consumption
Список pgsql-hackers
On 10.05.2011 14:39, Peter Geoghegan wrote:
> Attached is win32 implementation of the "named pipe trick".
>
> It consists of a Visual Studio 2008 solution that contains two
> projects, named_pipe_trick (which represents the postmaster) and
> auxiliary_backend (which represents each auxiliary process). I split
> the solution into two projects/programs because Windows lacks fork()
> to make it all happen with a single program.
>
> Thoughts? Once I have some buy-in, I'd like to write a patch for the
> latch code that incorporates monitoring the postmaster using the named
> pipe trick (for both unix_latch.c and win32_latch.c), plus Heikki's
> suggestions.

It should be an anonymous pipe that's inherited by the child process by 
rather than a named pipe. Otherwise seems fine to me, as far as this 
proof of concept program goes.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Process wakeups when idle and power consumption
Следующее
От: Robert Haas
Дата:
Сообщение: Re: the big picture for index-only scans