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

From: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
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 14:43:12
Message-ID: CAEYLb_UxpZzdzeW6KXRket=svZ893Nxhnqk+DJh7X8W04hKXrg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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?

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-01-27 16:01:19 pgsql: pg_dump: Move connection-setup code to a separate function.
Previous Message Heikki Linnakangas 2012-01-27 10:49:31 pgsql: Fix copy-paste error in docs.