pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: formula about the number of WAL files
Date: Fri, 15 Oct 2010 10:19:56 +0100
Message-ID: <1287134396.1725.1300.camel@ebony> (raw)
In-Reply-To: <AANLkTik0sqru9oMZeTL4vnFkAaDYZB=-Meonv9gnroiu@mail.gmail.com>
References: <AANLkTik0sqru9oMZeTL4vnFkAaDYZB=-Meonv9gnroiu@mail.gmail.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <1287134396.1725.1300.camel@ebony>
Permalink:  ../1287134396.1725.1300.camel@ebony/
Also on:    postgresql.org/message-id/1287134396.1725.1300.camel@ebony

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: simon@2ndQuadrant.com, masao.fujii@gmail.com
  Subject: Re: formula about the number of WAL files
  In-Reply-To: <1287134396.1725.1300.camel@ebony>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox