Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id D83CF2E003F for ; Fri, 6 Jun 2008 09:39:37 -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 60965-09 for ; Fri, 6 Jun 2008 09:39:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gauss.credativ.com (gauss.credativ.com [212.112.227.254]) by developer.postgresql.org (Postfix) with ESMTP id 59B0F2E003D for ; Fri, 6 Jun 2008 09:39:34 -0300 (ADT) Received: from hawking.credativ.lan (exit.credativ.com [87.139.82.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 0164C7754C; Fri, 6 Jun 2008 14:39:33 +0200 (CEST) From: Peter Eisentraut To: pgsql-hackers@postgresql.org Subject: Re: Overhauling GUCS Date: Fri, 6 Jun 2008 14:39:31 +0200 User-Agent: KMail/1.9.9 Cc: Tom Lane , Andrew Dunstan , Greg Smith , Andreas Pflug , "Decibel!" , Josh Berkus References: <48409D1E.3070208@agliodbs.com> <48472E47.7030701@dunslane.net> <7473.1212625397@sss.pgh.pa.us> In-Reply-To: <7473.1212625397@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806061439.32335.peter_e@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/277 X-Sequence-Number: 119390 Am Donnerstag, 5. Juni 2008 schrieb Tom Lane: > 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? This is surely a good start. We could optimize this even more by saying, disk space is cheap, so let's just use a much higher default setting for checkpoint_segments. (If PostgreSQL is installed but not actually used, not all the space is actually going to be used anyway.) Then, increase max_connections a bit; that should be OK for most users. Then you are left with the memory settings, and those need kernel tuning in most cases, so any automation tool loses. Hmm.