Re: Checkpoint versus Background Writer - Mailing list pgsql-novice

From SUNDAY A. OLUTAYO
Subject Re: Checkpoint versus Background Writer
Date
Msg-id 97997dac-6693-4ced-9ae3-515928cef1ce@mail
Whole thread Raw
In response to Checkpoint versus Background Writer  (Shiv Sharma <shiv.sharma.1835@gmail.com>)
Responses Re: Checkpoint versus Background Writer
List pgsql-novice
Checkpoint is different to background writer though works together
BGW continuously write buffer to disk but checkpoint is interval default to 5min at which the process call BGW to flush the entire buffer to disk

Thanks,

Sunday Olutayo



From: "Shiv Sharma" <shiv.sharma.1835@gmail.com>
To: pgsql-novice@postgresql.org
Sent: Friday, December 27, 2013 8:46:42 PM
Subject: [NOVICE] Checkpoint versus Background Writer

They seem to do similar things: clear dirty buffers from shared_buffers to disk.

So why have 2 processes with seperate semantics (seperate set of config partms) ?

Assuming PG is multi-threaded, can't we simply have multiple threads of the checkpoint achieve the same result as (checkpoint + bg)


Shiv

pgsql-novice by date:

Previous
From: Shiv Sharma
Date:
Subject: Checkpoint versus Background Writer
Next
From: Shiv Sharma
Date:
Subject: Re: Checkpoint versus Background Writer