Re: Theory question

From: dinesh kumar <dineshkumar02(at)gmail(dot)com>
To: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Theory question
Date: 2013-11-12 08:57:28
Message-ID: CALnrH7qJ7H-zDkfnA9+V4-QM2HqM5HW2q40Sxm1X9KqEh2UaWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 12, 2013 at 6:57 AM, Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>wrote:

> Hi,
> What are the real differences between the bgwriter and checkpointer
> process? Both of them write data from the buffer to the data files, right?
> Is it just a matter of 'when' they write?
>

I believe, "Checkpoint" is one of the responsible duty of bgwriter process.
AFAIK from PG 9.2 onwards, we have another independent process called
"CKPTR process" which independently works. "Bgwriter" simply move the
shared_buffer's pages into local disk on the basis of LRU method. Where as
"CKPTR process" moves all the dirty buffers into local disk, and make a
transaction log sequence, at which all the data files have been updated to
reflect this information.

Best Regards,
Dinesh
manojadinesh.blogspot.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Figueiredo Jr. 2013-11-12 11:45:28 Re: GSSAPI server side on Linux, SSPI client side on Windows
Previous Message Raghavendra 2013-11-12 08:13:38 Re: Theory question