Re: Parsing config files in a directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Parsing config files in a directory
Date: 2009-10-25 01:50:55
Message-ID: 17233.1256435455@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I don't believe that the *ability* to have comments is the problem.
> It wouldn't hurt anything to ship a file with a general comment block
> at the top, with whatever content someone wants to put there. What
> makes it impossible to machine-edit this file is that there is a
> comment for every single setting, and that the "right place" to insert
> a value for any particular setting is (at least in the default
> configuration) marked by a comment which can be interpreted by humans
> and not by a computer.

Right, but your mistake is in supposing that that statement has
something to do with the instructions. What it has to do with is
a style of usage that the instructions happen to exemplify --- but
getting rid of the instructions wouldn't make people change their
usage habits.

I concur with Greg Smith's nearby comments that the way to go at this
is a stepwise process. It is only *after* there is a workable tool
that is a clear improvement on manual editing that you will have any
chance of getting people to move away from manual editing, or even
getting them to entertain any change proposals that make manual editing
less pleasant.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-10-25 01:55:20 Re: Parsing config files in a directory
Previous Message Robert Haas 2009-10-25 01:33:22 Re: Parsing config files in a directory