Re: Parsing config files in a directory

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Parsing config files in a directory
Дата
Msg-id 4AE896C0.40706@agliodbs.com
обсуждение исходный текст
Ответ на Re: Parsing config files in a directory  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Parsing config files in a directory
Re: Parsing config files in a directory
Re: Parsing config files in a directory
Список pgsql-hackers
Kevin,

> Perhaps the ease of writing something like that with sed or perl has
> caused me to underestimate the effort required in C.  I am curious
> whether you actually mean that, or said it for rhetorical effect.

I actually mean that.  It *looks* easy in perl, and in fact *is* easy
for *your* postgresql.conf which you control.  But writing a parser for
every postgresql.conf which exists in the world, no matter how someone
has hacked it up creatively?  No matter how they've handled upgrades?
For every version of PostgreSQL?  That requires writing a full parser
with grammar and near-turing capabilities.

> Well, I wouldn't vote against it since it seems to do me no harm; I
> was just confused at the repeated assertion that update-in-place was
> such a hard problem. 

It's the basic and unsolvable issue of how do you have a file which is
both perfectly human-readable-and-editable *and* perfectly
machine-readable-and-editable at the same time.

--Josh Berkus



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Parsing config files in a directory
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [PATCHES] updated hash functions for postgresql v1