Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A3B771337BD4 for ; Thu, 13 Jan 2011 19:02:28 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 43101-01-4 for ; Thu, 13 Jan 2011 23:02:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail149122.authsmtp.com (outmail149122.authsmtp.com [62.13.149.122]) by mail.postgresql.org (Postfix) with ESMTP id 5C06D1337BD2 for ; Thu, 13 Jan 2011 19:02:20 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0DN2He2076000; Thu, 13 Jan 2011 23:02:17 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p0DN2DnC087889; Thu, 13 Jan 2011 23:02:13 GMT Message-ID: <4D2F8474.7020608@agliodbs.com> Date: Thu, 13 Jan 2011 15:02:12 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Robert Haas CC: Magnus Hagander , Greg Smith , pgsql-hackers@postgresql.org Subject: Re: auto-sizing wal_buffers References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 296f044e-1f69-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQN c1ADdR1xOVtbHwkA AnYJWF5UUldwXS1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAWh/ BGpAIRl6cA1OcTB2 Y0RmEHJSWhJ6cUIo X08CE2QbZGY1aH0X UBJRagNUcgFMeh8X Ylh8AT1vNG8XDQIR NCweBQsEdTxCNCMQ WQAfLFQdCVkCGgk2 Wh4MEC80dQDI X-Authentic-SMTP: 61633136333939.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/1019 X-Sequence-Number: 178856 > Depends what people want to do. We could make the default "0kB", and > define that to mean "auto-tune", or we could remove the parameter > altogether. I think I was envisioning the latter, but if people are > hesitant to do that we could do the former instead. Unfortunately, we might still need a manual parameter for override because of the interaction between wal_buffers and synchronous_commit=off, since it sets the max size of the unflushed data buffer. Discuss? And the "auto" setting should be -1, not 0kB. We use -1 for "use default" for several other GUCs. Other than that, I think Greg's numbers are fine, and strongly support having one less thing to tune. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com