Re: Allow commenting of variables in postgresql.conf to -

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, bruce(at)momjian(dot)us
Subject: Re: Allow commenting of variables in postgresql.conf to -
Date: 2006-08-05 14:26:50
Message-ID: 200608051626.51209.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Zdenek Kotala wrote:
> OK. I split patch to two parts. Part one is refactoring of
> set_config_options function. Part two implements feature "Allow
> commenting of variables in postgresql.conf to restore them to
> defaults".

I'm having trouble wrapping my head around a code "refactoring" which
actually makes the code significantly *longer*. The only interface
change I could detect is the introduction of a function
verify_config_option(), which should just be a small variation on
set_config_option() as it currently exists.

I'm also about a relive a personal trauma if I see error messages like
this:

errmsg("configuration file is invalid")

I just had to deal with an unnamed product where this was all you got!

Please, explain again what this refactoring is supposed to achieve.

The second part of your patch actually looks pretty reasonable and does
not appear to require the refactoring.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-08-05 14:49:27 Re: 8.2 features status
Previous Message Martijn van Oosterhout 2006-08-05 13:49:33 Re: 8.2 features status

Browse pgsql-patches by date

  From Date Subject
Next Message Jonah H. Harris 2006-08-05 15:12:09 Hierarchical Queries--Status
Previous Message Oliver Jowett 2006-08-05 07:39:48 Re: [HACKERS] [PATCHES] log_statement output for protocol