Hi!
Simon Riggs wrote:
> On Sun, 2009-03-08 at 16:27 -0700, Selena Deckelmann wrote:
>> ParseConfigFile currently exits on the first parsing error. Changed
>> guc_file.l to report all parsing errors before exiting:
>> * Moved parse_error: block inside while() loop
>> * Removed cleanup_exit: and associated 'goto'
>> * Added ereport if ParseConfigFile() returns false
>> * changed OK to ok ;)
>> * Added comment - TODO: Report bogus variables in addition to parsing
>> errors before bailing out
>
> These are very good changes, good news.
Thanks :)
> Is it possible to check for parameters that have been changed, yet will
> not be applied at reload?
This was already implemented! :) For example:
LOG: attempted change of parameter "shared_buffers" ignored
DETAIL: This parameter cannot be changed after server start.
LOG: attempted change of parameter "max_prepared_transactions" ignored
DETAIL: This parameter cannot be changed after server start.
A thing that could be added, however, is reporting of all invalid (as
opposed to valid, but requires a restart to apply) parameters before
exiting. This change requires refactoring ProcessConfigFile() more
significantly, as the parsing and validity checks are done separately,
and are exited with gotos. :)
I haven't tried to change this yet, but was planning to.
-selena
--
Selena Deckelmann
End Point Corporation