Re: What is the relationship between checkpoint and wal - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: What is the relationship between checkpoint and wal
Date
Msg-id 20130823033008.GF10710@eldon.alvh.no-ip.org
Whole thread Raw
In response to What is the relationship between checkpoint and wal  (高健 <luckyjackgao@gmail.com>)
Responses Re: What is the relationship between checkpoint and wal  (高健 <luckyjackgao@gmail.com>)
List pgsql-general
高健 escribió:

> ...
> Checkpoints are fairly expensive, first because they require writing out
> all currently dirty buffers, and second because they result in extra
> subsequent WAL traffic as discussed above.
> ...
>
> What confused me is that:  (checkpoint)result in extra subsequent WAL
> traffic as discussed above...
>
> I haven't found any more information can describe it in the "above" of that
> page.

It means that the first change following the checkpoint that affects any
particular page will require a full page image of that page to be
written to WAL.  See the discussion in the preceding paragraph about
"full_page_writes".  It's not the checkpoint itself that writes this
extra WAL, but the rest of the system.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: 高健
Date:
Subject: What is the relationship between checkpoint and wal
Next
From: Michael Paquier
Date:
Subject: Re: Temp files on Commit