pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Another WAL question
Date: Wed, 12 Sep 2001 12:53:41 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com> (raw)
In-Reply-To: <200109121732.f8CHWVp18785@candle.pha.pa.us>


> In 7.1.3 and 7.2, there are only 2-3 WAL files kept because there is no
> need to keep them after a checkpoint.

This answers my original question- it sounds like after 3, they get recycled
or deleted, so if I reserve 48Mb (3*16) for these, I should be OK. ...Right?


> Is there any need to have these
> WAL config paramaters anymore?

I'd say all of the parameters you list below still make sense, as they all
control *how* the 2-3 WAL files are used. WAL_FILES might as well be 0-3
instead of 0-64, but I can still see an advantage to creating these in
advance to allocate the space.


> We currently have in postgresql.conf:
>
> #wal_buffers = 8            # min 4
> #wal_files = 0 # range 0-64
> #wal_sync_method = fsync   # fsync or fdatasync or open_sync or
> open_datasync
> # Note: default wal_sync_method varies across platforms
> #wal_debug = 0             # range 0-16
> #commit_delay = 0          # range 0-100000
> #commit_siblings = 5       # range 1-1000
> #checkpoint_segments = 3   # in logfile segments (16MB each), min 1
> #checkpoint_timeout = 300  # in seconds, range 30-3600


Thanks for the good answers on this!

-Nick




view thread (6+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, pgman@candle.pha.pa.us
  Subject: Re: Another WAL question
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com>
  References: <200109121732.f8CHWVp18785@candle.pha.pa.us> <NEBBLAAHGLEEPCGOBHDGIEINDKAA.nickf@ontko.com>

* 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