Re: Process wakeups when idle and power consumption

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Process wakeups when idle and power consumption
Date: 2011-05-11 08:54:51
Message-ID: BANLkTikWfZTJgBc1umV4M+n-x5ig6f8Bzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 11, 2011 at 10:52, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
> On 9 May 2011 11:19, Heikki Linnakangas
> <heikki(dot)linnakangas(at)enterprisedb(dot)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/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message tv 2011-05-11 08:56:19 Re: potential bug in trigger with boolean params
Previous Message Heikki Linnakangas 2011-05-11 08:52:56 Re: the big picture for index-only scans