Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 7C3332E0031 for ; Wed, 4 Jun 2008 22:20:55 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58424-07 for ; Wed, 4 Jun 2008 22:20:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from m.wordtothewise.com (fruitbat.wordtothewise.com [208.187.80.135]) by developer.postgresql.org (Postfix) with ESMTP id 7937E2E002C for ; Wed, 4 Jun 2008 22:20:52 -0300 (ADT) Received: from platter.wordtothewise.com (184.wordtothewise.com [208.187.80.184]) by m.wordtothewise.com (Postfix) with ESMTP id 8A20E4F8004 for ; Wed, 4 Jun 2008 18:20:50 -0700 (PDT) Message-Id: <448BD875-FE20-4985-92CD-DFF6FC0641D3@blighty.com> From: Steve Atkins To: PostgreSQL Developers In-Reply-To: <7473.1212625397@sss.pgh.pa.us> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: Overhauling GUCS Date: Wed, 4 Jun 2008 18:20:49 -0700 References: <48409D1E.3070208@agliodbs.com> <200806010032.53337.peter_e@gmx.net> <17932.1212415926@sss.pgh.pa.us> <20080604131810.GH65238@decibel.org> <4846A483.8000001@pse-consulting.de> <29525.1212613052@sss.pgh.pa.us> <48472E47.7030701@dunslane.net> <7473.1212625397@sss.pgh.pa.us> X-Mailer: Apple Mail (2.924) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/203 X-Sequence-Number: 119316 On Jun 4, 2008, at 5:23 PM, Tom Lane wrote: > Andrew Dunstan writes: >> Tom Lane wrote: >>> * Can we build a "configuration wizard" to tell newbies what >>> settings >>> they need to tweak? > >> That would trump all the other suggestions conclusively. Anyone >> good at >> expert systems? > > How far could we get with the answers to just three questions: > > * How many concurrent queries do you expect to have? > > * How much RAM space are you willing to let Postgres use? > > * How much "overhead" disk space are you willing to let Postgres use? > > concurrent queries drives max_connections, obviously, and RAM space > would drive shared_buffers and effective_cache_size, and both of them > would be needed to size work_mem. The third one is a bit weird but > I don't see any other good way to set the checkpoint parameters. > > If those aren't enough questions, what else must we ask? Or maybe > they > aren't the right questions at all --- maybe we should ask "is this a > dedicated machine or not" and try to extrapolate everything else from > what we (hopefully) can find out about the hardware. I'd be interested in putting together a framework+GUI client to do this cleanly in a cross-platform (Windows, Linux, Solaris, OS X as a bare minimum) sort of way, if no-one else already has such a thing. A framework doesn't get you all the way there, but it makes it a whole lot easier to work on what base data and information you need, and how easy it is to map pgsql-performance and #postgresql gut feel onto something more algorithmic. Cheers, Steve