Re: Parsing config files in a directory - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Parsing config files in a directory
Date
Msg-id 4AE857DB.7080603@dunslane.net
Whole thread Raw
In response to Re: Parsing config files in a directory  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers

Alvaro Herrera wrote:
> Greg Smith escribió:
>
>   
>>> I was thinking that the algorithm would be something like: "Read
>>> the old postgresql.conf and write it back out to a new file line
>>> by line....
>>>       
>> This sounds familiar...oh, that's right, this is almost the same
>> algorithm pgtune uses.  And it sucks, and it's a pain to covert the
>> tool into C because of it, and the fact that you have to write this
>> sort of boring code before you can do a single line of productive
>> work is one reason why we don't have more tools available; way too
>> much painful grunt work to write.
>>     
>
> Huh, isn't this code in initdb.c already?  Since it's BSD-licensed (or
> is it MIT?) you could just have lifted it.  Surely this isn't the reason
> the tool isn't written in C.
>
>   

In any case, initdb has to be in C for portability reasons (I'm more 
aware of this than most ;-) ), but other tools don't unless the server 
has to rely on them.

cheers

andrew


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Parsing config files in a directory
Next
From: "Kevin Grittner"
Date:
Subject: Re: Parsing config files in a directory