Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group