Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8F3E79FB831 for ; Wed, 16 May 2007 14:08:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 45105-02 for ; Wed, 16 May 2007 14:07:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from p02c11o142.mxlogic.net (p02c11o142.mxlogic.net [208.65.144.75]) by postgresql.org (Postfix) with ESMTP id 083D69FB87E for ; Wed, 16 May 2007 14:08:01 -0300 (ADT) Received: from unknown [208.65.151.10] (EHLO p02c11o142.mxlogic.net) by p02c11o142.mxlogic.net (mxl_mta-5.0.0-2) with ESMTP id 17a3b464.1902091184.441888.00-514.p02c11o142.mxlogic.net (envelope-from ); Wed, 16 May 2007 11:08:01 -0600 (MDT) Received: from unknown [208.65.151.10] (EHLO mxlhq-exch01.corp.mxlogic.com) by p02c11o142.mxlogic.net (mxl_mta-5.0.0-2) with ESMTP id c6a3b464.1849641904.441867.00-003.p02c11o142.mxlogic.net (envelope-from ); Wed, 16 May 2007 11:07:56 -0600 (MDT) Received: from 10.30.1.68 ([10.30.1.68]) by mxlhq-exch01.corp.mxlogic.com ([10.30.0.246]) via Exchange Front-End Server webmail.mxlogic.com ([10.30.0.241]) with Microsoft Exchange Server HTTP-DAV ; Wed, 16 May 2007 17:07:55 +0000 Received: from MXLRMT-208 by webmail.mxlogic.com; 16 May 2007 11:08:04 -0600 Subject: Re: WAL file utilization question From: Keaton Adams Reply-To: kadams@mxlogic.com To: "Jim C. Nasby" Cc: pgsql-admin@postgresql.org In-Reply-To: <20070516165143.GU14548@nasby.net> References: <1179332909.22514.3.camel@MXLRMT-208.corp.mxlogic.com> <20070516163513.GQ14548@nasby.net> <1179334144.22514.14.camel@MXLRMT-208.corp.mxlogic.com> <20070516165143.GU14548@nasby.net> Content-Type: multipart/alternative; boundary="=-IbdeMsWRRqguoUH+olfI" Organization: MX Logic, Inc. Date: Wed, 16 May 2007 11:08:04 -0600 Message-Id: <1179335284.22514.30.camel@MXLRMT-208.corp.mxlogic.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 X-Spam: [F=0.0100000000; S=0.010(2007050201); SS=0.500] X-MAIL-FROM: X-SOURCE-IP: [208.65.151.10] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.75 tagged_above=0 required=5 tests=AWL=0.037, BAYES_05=-1.11, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 200705/146 X-Sequence-Number: 25466 --=-IbdeMsWRRqguoUH+olfI Content-Type: text/plain Content-Transfer-Encoding: 7bit That's considerably more transaction log space to allocate than what I am used to (up to 16 GB), but I'll set the parameter and see just how many logs PostgreSQL creates and what the new rate of WAL file archiving is over my test period. Thanks, this information was very helpful, Keaton On Wed, 2007-05-16 at 11:51 -0500, Jim C. Nasby wrote: > On Wed, May 16, 2007 at 10:49:04AM -0600, Keaton Adams wrote: > > So, if I do set the checkpoint_segments parameter to 50, 75, or even 100 > > I will have a considerable number of WAL files in data/pg_xlog, but they > > will be used more efficiently, so I will be archiving less? That's what > > I understand from the comments received so far. > > Yes. Let it create 500 or 1000 WAL files if it wants... it's much more > important to limit the frequency of checkpoints than to reduce the > number of WAL files (which has virtually no impact on performance). --=-IbdeMsWRRqguoUH+olfI Content-Type: text/html; charset=utf-8 That's considerably more transaction log space to allocate than what I am used to (up to 16 GB), but I'll set the parameter and see just how many logs PostgreSQL creates and what the new rate of WAL file archiving is over my test period.

Thanks, this information was very helpful,

Keaton



On Wed, 2007-05-16 at 11:51 -0500, Jim C. Nasby wrote:
On Wed, May 16, 2007 at 10:49:04AM -0600, Keaton Adams wrote:
> So, if I do set the checkpoint_segments parameter to 50, 75, or even 100
> I will have a considerable number of WAL files in data/pg_xlog, but they
> will be used more efficiently, so I will be archiving less?  That's what
> I understand from the comments received so far.

Yes. Let it create 500 or 1000 WAL files if it wants... it's much more
important to limit the frequency of checkpoints than to reduce the
number of WAL files (which has virtually no impact on performance).
--=-IbdeMsWRRqguoUH+olfI--