Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3573D2E0084 for ; Thu, 5 Jun 2008 18:48:00 -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 88060-04 for ; Thu, 5 Jun 2008 18:47:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by developer.postgresql.org (Postfix) with ESMTP id D583E2E0088 for ; Thu, 5 Jun 2008 18:47:56 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m55LltNE016815; Thu, 5 Jun 2008 17:47:55 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m55LltvT016812; Thu, 5 Jun 2008 17:47:55 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Thu, 5 Jun 2008 17:47:55 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Aidan Van Dyk cc: pgsql-hackers@postgresql.org Subject: Re: Overhauling GUCS In-Reply-To: <20080605212129.GI14498@yugib.highrise.ca> Message-ID: References: <29525.1212613052@sss.pgh.pa.us> <48472E47.7030701@dunslane.net> <20080605162400.GF16502@alvh.no-ip.org> <48481CBF.6040602@enterprisedb.com> <48481E3A.4010306@hagander.net> <20080605174209.GL16502@alvh.no-ip.org> <20080605212129.GI14498@yugib.highrise.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/258 X-Sequence-Number: 119371 On Thu, 5 Jun 2008, Aidan Van Dyk wrote: > People like me don't want to have postgresql.conf be *only* a > machine-generated file, which I am not allowed to edit anymore because > next DBA doing a "SET PERSISTANT" type of command is going to cause > postgres to write out something else, over-writing my carefully > documented reason for some particular setting. This is why there's the emphasis on preserving comments as they pass into the GUC structure and back to an output file. This is one of the implementation details I haven't fully made up my mind on: how to clearly label user comments in the postgresql.conf to distinguish them from verbose ones added to the file. I have no intention of letting manual user edits go away; what I'm trying to do here (and this part is much more me than Josh) is make them more uniform such that they can co-exist with machine edits without either stomping on the other. Right now doing that is difficult, because it's impossible to tell the default comments from the ones the users added and the current comment structure bleeds onto the same lines as the settings. > But the big issue I have (not that it really matters, because I'm not > one of the ones working on it, so I please don't take this as me telling > anyone what they can or can't do) is that that goal doesn't solve any of > the listed problems stated in the proposal > 1. Most people have no idea how to set these. Making it much easier to build recommendation tools is how this helps here. > 2. The current postgresql.conf file is a huge mess of 194 options, > the vast majority of which most users will never touch. The proposed pg_generate_conf tool includes options to spit out a basic configuration file instead of the complete one. > 3. GUCS lists are kept in 3 different places (guc.c, postgresql.conf, > and settings.sgml), which are only synched with each other manually. The proposal throws away having a separate postgresql.conf file, so that reduces it from 3 places to 2. That's moving in the right direction > 4. We don't seem to be getting any closer to autotuning. If you try to build a tuning tool, these areas end up being the unnecessarily hard parts. Thanks for the comments on the proposal. I'm only bothering to respond to messages like yours now, am deleting all of the continuing attemps to divert the discussion over to parameter tuning details or expanding the scope here. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD