X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A835C11F6083 for ; Tue, 25 Apr 2006 03:06:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 28660-08 for ; Tue, 25 Apr 2006 03:06:04 -0300 (ADT) X-Greylist: delayed 00:18:35.669237 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5F9CE11F6093 for ; Tue, 25 Apr 2006 03:06:02 -0300 (ADT) Received: from monomail.webspider.com.au (smtp.webspider.com.au [203.57.68.1]) by svr4.postgresql.org (Postfix) with ESMTP id 7156A5B1AB3 for ; Tue, 25 Apr 2006 05:47:26 +0000 (GMT) Received: from dunslane.net (202-6-158-17.dragonfly.dialup.webspider.com.au [202.6.158.17]) (authenticated bits=0) by monomail.webspider.com.au (8.13.6/8.13.4) with ESMTP id k3P5glS1023981; Tue, 25 Apr 2006 15:12:49 +0930 Message-ID: <444DB6F3.6000504@dunslane.net> Date: Tue, 25 Apr 2006 15:13:15 +0930 From: Andrew Dunstan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jim C. Nasby" Cc: Tom Lane , "Jonah H. Harris" , John DeSoi , Pgsql Hackers Subject: Re: Google SoC--Idea Request References: <20060417205455.GP49405@pervasive.com> <44452F9C.8000401@osdl.org> <36e682920604190909p68649a35m1953a7b4262b8852@mail.gmail.com> <20060423214524.GC4775@surnet.cl> <36e682920604231522w96183d0mbedfd7c70d574b58@mail.gmail.com> <20060424165112.GD38186@pervasive.com> <8743.1145932591@sss.pgh.pa.us> <36e682920604241956s2bdd8880q2c479740d893c6fd@mail.gmail.com> <9008.1145934318@sss.pgh.pa.us> <20060425050017.GC81249@pervasive.com> In-Reply-To: <20060425050017.GC81249@pervasive.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/1424/Tue Apr 25 00:09:06 2006 on monomail X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/906 X-Sequence-Number: 82629 Jim C. Nasby wrote: >On Mon, Apr 24, 2006 at 11:05:18PM -0400, Tom Lane wrote: > > >>"Jonah H. Harris" writes: >> >> >>>While the student could do some benchmarking on relatively new >>>hardware and make suggestions, I agree with Tom. Having to keep >>>support for older platforms doesn't leave much flexibility to change >>>the defaults. >>> >>> >>Another point here is that the defaults *are* reasonable for development >>and for small installations; the people who are complaining are the ones >>who expect to run terabyte databases without any tuning. (I exaggerate >>perhaps, but the point is valid.) >> >>We've talked more than once about offering multiple alternative >>starting-point postgresql.conf files to give people an idea of what to >>do for small/medium/large installations. MySQL have done that for years >>and it doesn't seem that users are unable to cope with the concept. >>But doing this is (a) mostly a matter of testing and documenting, not >>coding and (b) probably too small for a SoC project anyway. >> >> > >My recollection was that there was opposition to offering multiple >config files, but that there was a proposal to make initdb smarter about >picking configuration values. > >Personally, I agree that multiple config files would be fine. Or a >really fancy solution would be feeding a config option to initdb and >have it generate an appropriate postgresql.conf. > > We have already done some initdb tuning improvements for 8.2 - shared buffers now tops out at 4000 instead of 1000 and initdb now sets max_fsm_pages at a more realistic level. (top is 200,000 instead of previously hardcoded 20,000). I would have liked to increase max_connections too, but that would have caused problems on OSX, apparently. See previous discussion. Personally I would much rather see a tuning advisor tool in more general use than just provide small/medium/large config setting files. cheers andrew