Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3972B9FB99A; Mon, 18 Jun 2007 23:27:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 34836-05; Mon, 18 Jun 2007 23:27:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vps.newx.com.br (vps.newx.com.br [72.232.208.191]) by postgresql.org (Postfix) with ESMTP id CD8379FBCC3; Mon, 18 Jun 2007 23:27:23 -0300 (ADT) Received: from [201.21.202.199] (helo=[10.1.2.10]) by vps.newx.com.br with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1I0T6A-0006oz-3v; Mon, 18 Jun 2007 22:05:39 -0400 Message-ID: <46773F69.1020003@timbira.com> Date: Mon, 18 Jun 2007 23:28:57 -0300 From: Euler Taveira de Oliveira User-Agent: Thunderbird 1.5.0.10 (X11/20070301) MIME-Version: 1.0 To: "Campbell, Lance" CC: pgsql-docs@postgresql.org, pgsql-performance@postgresql.org Subject: Re: Volunteer to build a configuration tool References: In-Reply-To: X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.newx.com.br X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - timbira.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/16 X-Sequence-Number: 4305 Campbell, Lance wrote: > Next the person would press a button, “generate”, found below the > questions. The JavaScript HTML page would then generate content for two > Iframes at the bottom on the page. One Iframe would contain the > contents of the postgresql.conf file. The postgresql.conf settings > would be tailored more to the individuals needs than the standard > default file. The second Iframe would contain the default settings one > should consider using with their operating system. > Man, it's not that easy. :-) Mainly because you will need some database activity. For example, work_mem, checkpoint_segments, and checkpoint_timeout depends on the database's dynamic. Database are not that static so another idea is to build a piece of software that monitors the database and do the modifications based on some observations (log, stats, etc). Don't forget that some of these options need a restart. So maybe your tool just advise the DBA that he/she could change option X to Y. Such a tool was proposed later [1] but it's not up to date. :( [1] http://pgfoundry.org/projects/pgautotune/ -- Euler Taveira de Oliveira http://www.timbira.com/