Re: postgresql.conf: patch to have ParseConfigFile report all parsing errors, then bail

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Selena Deckelmann <selena(at)endpoint(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql.conf: patch to have ParseConfigFile report all parsing errors, then bail
Date: 2009-03-10 15:04:40
Message-ID: 1236697480.28644.27.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Tue, 2009-03-10 at 07:30 -0700, Selena Deckelmann wrote:

> > 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.

OK, had that at the back of my mind for a while I guess.

> 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.

Can't we just do a reload, but with doit = false?

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Selena Deckelmann 2009-03-10 16:07:47 Re: postgresql.conf: patch to have ParseConfigFile report all parsing errors, then bail
Previous Message Simon Riggs 2009-03-10 15:02:52 Re: Prepping to break every past release...