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

From Heikki Linnakangas
Subject Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el
Date
Msg-id 4F22D03E.3080301@enterprisedb.com
Whole thread Raw
In response to Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el  (Peter Geoghegan <peter@2ndquadrant.com>)
List pgsql-committers
On 27.01.2012 16:43, Peter Geoghegan wrote:
> On 26 January 2012 16:43, Heikki Linnakangas<heikki.linnakangas@iki.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

pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Initialize the new bgwriterLatch field properly.
Next
From: Robert Haas
Date:
Subject: pgsql: Document that analyzing an empty table doesn't update the statis