Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 63C0E1337BCB for ; Thu, 13 Jan 2011 19:20:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78819-06 for ; Thu, 13 Jan 2011 23:20:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148152.authsmtp.com (outmail148152.authsmtp.com [62.13.148.152]) by mail.postgresql.org (Postfix) with ESMTP id A60D41337BC3 for ; Thu, 13 Jan 2011 19:20:15 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0DNKDBR028536; Thu, 13 Jan 2011 23:20:13 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 p0DNK61n000686; Thu, 13 Jan 2011 23:20:07 GMT Message-ID: <4D2F88A0.9010703@agliodbs.com> Date: Thu, 13 Jan 2011 15:20:00 -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: <4D2F8474.7020608@agliodbs.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: a9b57b6c-1f6b-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQN c1ADdR1xOVtbHwkA AnYJWF5WUFdxUC1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAWh/ fRgfDBlydwNOfjB3 YUBqECFSDkF9J0Au X08CEz8bZGY1aH0X 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/1022 X-Sequence-Number: 178859 Robert, >> 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? > > Do we have any evidence there's actually a problem in that case, or > that a larger value of wal_buffers solves it? I mean, the background > writer is going to start a background flush as quickly as it can... I don't think anyone has done any testing. However, the setting is there and some users might be convinced that they need it. >> And the "auto" setting should be -1, not 0kB. We use -1 for "use >> default" for several other GUCs. > > No can do. Gotta have things in the same units. That's certainly not true with, for example, log_temp_files. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com