Skip site navigation (1) Skip section navigation (2)

Re: formula about the number of WAL files

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: formula about the number of WAL files
Date: 2010-10-15 09:19:56
Message-ID: 1287134396.1725.1300.camel@ebony (view raw or flat)
Thread:
Lists: 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


In response to

Responses

pgsql-docs by date

Next:From: Simon RiggsDate: 2010-10-15 09:20:51
Subject: Re: [HACKERS] Docs for archive_cleanup_command are poor
Previous:From: Robert HaasDate: 2010-10-14 23:17:49
Subject: Re: Documenting removal of nonnullvalue() and friends

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group