Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5F08F9FB790 for ; Wed, 16 May 2007 17:03:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41619-10 for ; Wed, 16 May 2007 17:03:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id DAC529FB772 for ; Wed, 16 May 2007 17:03:00 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l4GK2vIS006776; Wed, 16 May 2007 16:02:57 -0400 (EDT) To: kadams@mxlogic.com cc: "Jim C. Nasby" , pgsql-admin@postgresql.org Subject: Re: WAL file utilization question In-reply-to: <1179334144.22514.14.camel@MXLRMT-208.corp.mxlogic.com> References: <1179332909.22514.3.camel@MXLRMT-208.corp.mxlogic.com> <20070516163513.GQ14548@nasby.net> <1179334144.22514.14.camel@MXLRMT-208.corp.mxlogic.com> Comments: In-reply-to Keaton Adams message dated "Wed, 16 May 2007 10:49:04 -0600" Date: Wed, 16 May 2007 16:02:57 -0400 Message-ID: <6775.1179345777@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/151 X-Sequence-Number: 25471 Keaton Adams writes: > Well, no, I'm not that paranoid where I expect checkpoints to be taking > place so often. I do find it interesting that controlling checkpoint > frequency is a factor of the number of WAL files available. In order to > get up to 60 second checkpoints I had to set checkpoint_segments to 25, > which resulted in the creation of 52 log files in data/pg_xlog. So for > 120 second checkpoints I will need to have up to 104 log files in > data/pg_xlog available? No, it's nonlinear, precisely because of the checkpoints-increase-the-log-size effect. Given the size of modern disks, I don't see why a couple Gb of WAL space is a problem anyhow for a large database. regards, tom lane