Re: Process wakeups when idle and power consumption - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Process wakeups when idle and power consumption
Date
Msg-id BANLkTikWfZTJgBc1umV4M+n-x5ig6f8Bzg@mail.gmail.com
Whole thread Raw
In response to Re: Process wakeups when idle and power consumption  (Peter Geoghegan <peter@2ndquadrant.com>)
Responses Re: Process wakeups when idle and power consumption  (Peter Geoghegan <peter@2ndquadrant.com>)
List pgsql-hackers
On Wed, May 11, 2011 at 10:52, Peter Geoghegan <peter@2ndquadrant.com> wrote:
> On 9 May 2011 11:19, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>
>> In the child, spawn a thread
>
> How exactly should I go about this? The one place in the code that I
> knew to use multiple threads, pgbench, falls back on "emulation with
> fork()" on some platforms.

If you're doing this Win32 specific, take a look at
src/backend/port/win32/signal.c for an example.

If you're not doing this win32-specific, I doubt we really want
threads to be involved...

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: the big picture for index-only scans
Next
From: tv@fuzzy.cz
Date:
Subject: Re: potential bug in trigger with boolean params