Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8CHWf757193 for ; Wed, 12 Sep 2001 13:32:41 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id f8CHWVp18785; Wed, 12 Sep 2001 13:32:31 -0400 (EDT) From: Bruce Momjian Message-Id: <200109121732.f8CHWVp18785@candle.pha.pa.us> Subject: Re: Another WAL question In-Reply-To: "from Nick Fankhauser at Sep 12, 2001 09:40:24 am" To: nickf@ontko.com Date: Wed, 12 Sep 2001 13:32:31 -0400 (EDT) CC: pgsql-admin X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200109/62 X-Sequence-Number: 2162 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. Is there any need to have these WAL config paramaters anymore? 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 > Robert F. mentioned that there is a config parameter controlling the number > of WAL files in postgresql.conf. > > I just looked at the Doc on this & I found WAL_FILES, which appears to > specify the number of files to create in advance, but it is no clear to me > that this limits the total number of WAL files created. Can this number be > exceeded as needed by the postmaster? If so, is there another parameter that > I'm missing to set a limit? > > Are old WAL files deleted or re-used automatically when all of their > contents have been flushed to the DB, or should we be watching these & > either archiving or deleting old ones? > > TIA, > > -Nick > > --------------------------------------------------------------------- > Nick Fankhauser > > Business: > nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788 > doxpop - Court records at your fingertips - http://www.doxpop.com/ > > Personal: > nick@fankhausers.com http://www.fankhausers.com > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026