Checkpoint ; WAL

From: kenneth d'souza <kd_souza(at)hotmail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Checkpoint ; WAL
Date: 2008-03-11 11:04:50
Message-ID: BAY116-W6C878A3D0E2B7B48ED327ED0F0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

I am reading some text on checkpoint, WAL etc in PG. read the files xlog.c, bgwriter.c. I have some newbie related questions which I am confused with. Appreciate if someone can throw more light.

The bgwriter is associated in writing the dirty buffers to the disk very so often.
Question : Does this write happen to the ( Xlog file and the data file ) or ( to the Xlog file only ) ?

Does the bgwriter mark the "dirty" buffer ( clean,free,...) after being written to the disk so that it can be used once again to store new data?

Apart from Checkpoint is there any point at which dirty buffers are written to the data file?

Thanks,
Kenneth

_________________________________________________________________
Post ads for free - to sell, rent or even buy.www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=186

Browse pgsql-novice by date

  From Date Subject
Next Message Cliff Nieuwenhuis 2008-03-11 15:10:15 encoding problems
Previous Message John DeSoi 2008-03-09 23:24:02 Re: pg_prepare question