Re: Parsing config files in a directory

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Parsing config files in a directory
Дата
Msg-id 20091028143305.GG5018@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Parsing config files in a directory  (Greg Smith <gsmith@gregsmith.com>)
Ответы Re: Parsing config files in a directory  (Andrew Dunstan <andrew@dunslane.net>)
Re: Parsing config files in a directory  (Greg Smith <gsmith@gregsmith.com>)
Re: Parsing config files in a directory  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
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.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Parsing config files in a directory
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Parsing config files in a directory