Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el
Date: 2012-01-27 16:26:38
Message-ID: 4F22D03E.3080301@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 27.01.2012 16:43, Peter Geoghegan wrote:
> On 26 January 2012 16:43, Heikki Linnakangas<heikki(dot)linnakangas(at)iki(dot)fi> wrote:
>> Make bgwriter sleep longer when it has no work to do, to save electricity.
>
> Perhaps this is pedantic, but shouldn't we be initialising
> bgwriterLatch to NULL within InitProcGlobal(), much as we already do
> for the other pointers in that structure?

Yeah, it should. Fixed.

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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-01-27 17:14:35 pgsql: Document that analyzing an empty table doesn't update the statis
Previous Message Heikki Linnakangas 2012-01-27 16:26:02 pgsql: Initialize the new bgwriterLatch field properly.