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

From Peter Geoghegan
Subject Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el
Date
Msg-id CAEYLb_UxpZzdzeW6KXRket=svZ893Nxhnqk+DJh7X8W04hKXrg@mail.gmail.com
Whole thread Raw
In response to pgsql: Make bgwriter sleep longer when it has no work to do, to save el  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Responses Re: pgsql: Make bgwriter sleep longer when it has no work to do, to save el
List pgsql-committers
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?

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

pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix copy-paste error in docs.
Next
From: Robert Haas
Date:
Subject: pgsql: pg_dump: Move connection-setup code to a separate function.