Skip site navigation (1) Skip section navigation (2)

Re: proposal: a validator for configuration files

From: Alexey Klyukin <alexk(at)commandprompt(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Selena Deckelmann <selena(at)chesnok(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: a validator for configuration files
Date: 2011-05-13 22:49:31
Message-ID: 845BBDD2-04A6-424A-9359-A3E6795E5356@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi,

On Apr 14, 2011, at 9:50 PM, Robert Haas wrote:

> On Mon, Apr 4, 2011 at 2:03 PM, Alexey Klyukin <alexk(at)commandprompt(dot)com> wrote:
>> Here's the update of Selena's patch, which also shows all errors in
>> configuration parameters (as well as parser errors) during reload.
> 
> You should add this here:
> 
> https://commitfest.postgresql.org/action/commitfest_view/open
> 
> On a quick glance, this patch appears to contain some superfluous
> hunks where you changed whitespace or variable names.  You might want
> to remove those and repost before adding to the CF app.  Also, some
> submission notes would be very helpful - when you send in the revised
> version, detail in the email the exact purpose of the changes so that
> someone can review the patch without having to read this thread and
> all preceding threads in their entirety.

Thank you for the feedback, I've updated the patch, attached is a new version.
I'll add it to the commitfest after posting this message.

The patch forces the parser to report all errors (max 100) from the
ProcessConfigFile/ParseConfigFp. Currently, only the first parse error or an
invalid directive is reported. Reporting all of them is crucial to automatic
validation of postgres config files.

This patch is based on the one submitted earlier by Selena Deckelmann:
http://archives.postgresql.org/pgsql-hackers/2009-03/msg00345.php

It incorporates suggestions by Tom Lane for avoiding excessive bloat in logs
in case there is a junk instead of postgresql.conf.
http://archives.postgresql.org/pgsql-hackers/2009-03/msg01142.php
 
Regards,
--
Alexey Klyukin
The PostgreSQL Company - Command Prompt, Inc.


Attachment: parser_continue_on_errors.diff
Description: application/octet-stream (5.3 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Gurjeet SinghDate: 2011-05-13 23:04:47
Subject: Re: Double ocurring Subplan
Previous:From: Cédric VillemainDate: 2011-05-13 22:34:24
Subject: Re: the big picture for index-only scans

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group