Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9CA3264FD13 for ; Sun, 17 Aug 2008 19:12:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 07859-05 for ; Sun, 17 Aug 2008 19:12:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id DF5AA64FCC7 for ; Sun, 17 Aug 2008 19:12:52 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m7HMCo3R007303; Sun, 17 Aug 2008 18:12:50 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m7HMCoFC007299; Sun, 17 Aug 2008 18:12:50 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Sun, 17 Aug 2008 18:12:50 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Tom Lane cc: pgsql-hackers@postgresql.org Subject: Re: Overhauling GUCS In-Reply-To: <26969.1219007935@sss.pgh.pa.us> Message-ID: References: <7473.1212625397@sss.pgh.pa.us> <200807161530.m6GFUNY28751@momjian.us> <407fa4640808130738s3537ca45j22322a5eb70f9173@mail.gmail.com> <26969.1219007935@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/697 X-Sequence-Number: 122451 On Sun, 17 Aug 2008, Tom Lane wrote: > What we have now was named Grand Unified Configuration for a reason: > it centralized the handling of what had been a mess of different things > configured in different ways. I'm not eager to go backwards on that. No need to change anything related to how the configuration is done. There's really only two things wrong with what's there right now IMHO and they don't require any changes to the internals, just what's shown: 1) The view should show both how the user defined the setting and how it's represented internally. Basically something that looks like this: select name,current_setting(name) as input_setting,setting from pg_settings; 2) Expose the default value. > I'm also interested to know exactly what such a table would provide > that isn't already available in the form of the pg_settings view. Links to the relevant documentation and a place to save both default and user comments about the setting were two things being considered that seemed a really bad fit to tack onto the GUC structure. There's some others. The main point is that that nobody wants to have to tinker with the core GUC itself just to decorate it with more information, that is complicated enough as it is. One might make a case that the stuff the GUC must handle (settings, units, type, defaults, etc.) could be usefully separated from all the more documentation-oriented bits stored there right now (category, descriptions), and that the existing documentation bits could move over to the table along with the hyperlinks and such. Doing that adds another place to have to edit, but I think there's an even exchange available there because it enables easy auto-generation of the postgresql.conf file at initdb time from that table + pg_settings. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD