Re: Overhauling GUCS - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Overhauling GUCS
Date
Msg-id 29525.1212613052@sss.pgh.pa.us
Whole thread Raw
In response to Re: Overhauling GUCS  (Greg Smith <gsmith@gregsmith.com>)
Responses Re: Overhauling GUCS  (Steve Atkins <steve@blighty.com>)
Re: Overhauling GUCS  ("BRUSSER Michael" <Michael.BRUSSER@3ds.com>)
Re: Overhauling GUCS  ("David E. Wheeler" <david@kineticode.com>)
Re: Overhauling GUCS  (Andreas Pflug <pgadmin@pse-consulting.de>)
Re: Overhauling GUCS  (Andrew Dunstan <andrew@dunslane.net>)
Re: Overhauling GUCS  (Greg Smith <gsmith@gregsmith.com>)
Re: Overhauling GUCS  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Greg Smith <gsmith@gregsmith.com> writes:
> On Wed, 4 Jun 2008, Andreas Pflug wrote:
>> IMHO the best compromise in machine and human readability is an XML format.

> If the primary PostgreSQL configuration file becomes XML I will quit 
> working with the project.  I'm not kidding.

I have no particular use for XML in this scenario either, but really
this thread seems to be arguing about mostly-irrelevant details.  There
is not anything fundamentally broken about keeping configuration in a
text file, as is proven by the fact that all those other packages do it.

The real problem we need to solve is how to allow newbies to have the
system auto-configured to something that more or less solves their
problems.  Putting the config settings in XML does not accomplish that,
and neither does putting them inside the database.  It might knock a
day or two off the time needed to develop a tool that actually does
solve the newbie's problem ... but it's unlikely that the effort of
changing Postgres to use some other configuration representation would
get repaid through easier tool development.

So I think we should stop worrying about the file format and think about
these two problems:

* Can we present the config options in a more helpful way (this is 99%
a documentation problem, not a code problem)?

* Can we build a "configuration wizard" to tell newbies what settings
they need to tweak?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Overhauling GUCS
Next
From: Simon Riggs
Date:
Subject: Re: Change lock requirements for adding a trigger