Re: proposal: a validator for configuration files - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: proposal: a validator for configuration files
Date
Msg-id 1310769368-sup-1025@alvh.no-ip.org
Whole thread Raw
In response to Re: proposal: a validator for configuration files  (Alexey Klyukin <alexk@commandprompt.com>)
Responses Re: proposal: a validator for configuration files
List pgsql-hackers
Excerpts from Alexey Kluykin's message of jue jul 14 09:18:15 -0400 2011:
> 
> On Jul 14, 2011, at 4:38 AM, Alvaro Herrera wrote:
> 

> >> On Jul14, 2011, at 01:38 , Alvaro Herrera wrote:

> This is happening because a check for total number of errors so far is happening only after coming across at least
onenon-recognized configuration option.  What about adding one more check right after ParseConfigFile, so we can bail
outearly when overwhelmed with syntax errors? This would save a line in translation :).
 

Actually I think it would make sense to do it completely the other way
around: reset the number of errors to zero before starting to apply the
values.  The rationale is that all the settings that made it past the
tokenisation are completely different lines for which the errors were
reported earlier.

> > I know I'd feel more comfortable if you (and Alexey, and Selena) gave it
> > another look :-)
> 
> I have checked it here and don't see any more problems with it.

Thanks.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Is there a committer in the house?
Next
From: "Kevin Grittner"
Date:
Subject: Re: SSI error messages