Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 17CD52E0041 for ; Wed, 4 Jun 2008 10:18:28 -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 40129-06 for ; Wed, 4 Jun 2008 10:18:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by developer.postgresql.org (Postfix) with ESMTP id E1D462E007A for ; Wed, 4 Jun 2008 10:18:18 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id CD69356487; Wed, 4 Jun 2008 08:18:16 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Wed, 4 Jun 2008 08:18:12 -0500 Date: Wed, 4 Jun 2008 08:18:11 -0500 From: Decibel! To: Tom Lane Cc: Greg Smith , Peter Eisentraut , pgsql-hackers@postgresql.org, Josh Berkus Subject: Re: Overhauling GUCS Message-ID: <20080604131810.GH65238@decibel.org> References: <48409D1E.3070208@agliodbs.com> <200806010032.53337.peter_e@gmx.net> <17932.1212415926@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17932.1212415926@sss.pgh.pa.us> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:080604:tgl@sss.pgh.pa.us::hvs5bwqTtplyuK17:00000000000000000000 0000000000000000000000001I8a X-Hashcash: 1:20:080604:gsmith@gregsmith.com::etcI9vfoJRA623/D:00000000000000000 0000000000000000000000006LaJ X-Hashcash: 1:20:080604:peter_e@gmx.net::Li5em85qKdYEtg4S:001wxT X-Hashcash: 1:20:080604:pgsql-hackers@postgresql.org::DnIdRCeTStsrFPac:000000000 00000000000000000000000047I8 X-Hashcash: 1:20:080604:josh@agliodbs.com::bTGvqdOGO3XPFrSz:00000000000000000000 0000000000000000000000001Spf X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/139 X-Sequence-Number: 119252 On Mon, Jun 02, 2008 at 10:12:06AM -0400, Tom Lane wrote: > Greg Smith writes: > > Joshua has been banging a drum for a while now that all this data needs to > > get pushing into the database itself. > > This is, very simply, not going to happen. Shall we go over the reasons > why not, one more time? > > > I have no objection to providing alternative ways to edit the > configuration data, but the primary source of the settings is > going to continue to be an editable text file. Any proposals for > alternatives-to-a-text-editor have to work within that reality. There's no reason that the server has to deal with a text file. I completely agree that there must be a method to change settings even if the database isn't running, but that method does not necessarily need to be a text file. If we can come up with a standard API for reading and writing config changes, we (or anyone else) can write any number of tools to deal with the settings. And once we have an API, we can provide a SQL interface on top of it. Instead of focusing on exactly what the 'new postgresql.conf' is going to look like we should focus on creating a clean configuration API. Once we have that we can figure out what (if anything) we're doing with the existing .conf, and what a new one (if it exists) might look like. -- Decibel!, aka Jim C. Nasby, Database Architect decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828