Re: formula about the number of WAL files - Mailing list pgsql-docs

From Simon Riggs
Subject Re: formula about the number of WAL files
Date
Msg-id 1287134396.1725.1300.camel@ebony
Whole thread Raw
In response to formula about the number of WAL files  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: formula about the number of WAL files
List pgsql-docs
On Thu, 2010-10-14 at 12:00 +0900, Fujii Masao wrote:
> ----------------
> 29.4. WAL Configuration
>
> There will always be at least one WAL segment file, and will normally not
> be more than (2 + checkpoint_completion_target) * checkpoint_segments + 1
> or checkpoint_segments + wal_keep_segments + 1 files.
> ----------------
>
> The above formula is wrong. The correct is
>
>     (2 + checkpoint_completion_target) * checkpoint_segments +
> wal_keep_segments + 1
>
> The attached patch fixes this fault.

The current docs are wrong, but your re-definition doesn't match the
actual code in CreateCheckPoint().

I've updated the docs to reflect how the code behaves.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Development, 24x7 Support, Training and Services


pgsql-docs by date:

Previous
From: Robert Haas
Date:
Subject: Re: Documenting removal of nonnullvalue() and friends
Next
From: Simon Riggs
Date:
Subject: Re: [HACKERS] Docs for archive_cleanup_command are poor