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

From Josh Berkus
Subject Re: Parsing config files in a directory
Date
Msg-id 4AE896C0.40706@agliodbs.com
Whole thread Raw
In response to Re: Parsing config files in a directory  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Parsing config files in a directory
Re: Parsing config files in a directory
Re: Parsing config files in a directory
List 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 by date:

Previous
From: Greg Stark
Date:
Subject: Re: Parsing config files in a directory
Next
From: Hannu Krosing
Date:
Subject: Re: [PATCHES] updated hash functions for postgresql v1