Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8CHso769244 for ; Wed, 12 Sep 2001 13:54:50 -0400 (EDT) (envelope-from nickf@ontko.com) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id MAA22194; Wed, 12 Sep 2001 12:54:46 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "Bruce Momjian" Cc: "pgsql-admin" Subject: Re: Another WAL question Date: Wed, 12 Sep 2001 12:53:41 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <200109121732.f8CHWVp18785@candle.pha.pa.us> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200109/63 X-Sequence-Number: 2163 > 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