Re: Server does not start when log_statement_stats is set to on - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: Server does not start when log_statement_stats is set to on
Date
Msg-id 20071226184307.GC4999@alvh.no-ip.org
Whole thread Raw
In response to Re: Server does not start when log_statement_stats is set to on  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Server does not start when log_statement_stats is set to on  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:
> Alvaro Herrera <alvherre@CommandPrompt.com> writes:
> > Tom Lane wrote:
> >> There are a bunch of other GUC assign hooks that behave similarly.
> >> Perhaps it'd be sensible to emit these complaints as LOG messages
> >> when we're dealing with a noninteractive source (ie, the config file)?
>
> > I was wondering whether we could make this error message (and
> > equivalent ones) be the FATAL one that prevents the server from
> > starting.
>
> There is some good reason, which I don't recall at the moment, why
> assign-hooks (and most of the rest of GUC) shouldn't FATAL in the
> middle of processing a config file.  However a LOG seems relatively
> harmless, and better than not emitting anything.

I'm thinking of keeping the ERROR, which (I think) would cause
postmaster to treat it as FATAL because there is no error handler set up
yet (no, I haven't tried it).

Perhaps you are correct in that LOG is the path of least resistance ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Server does not start when log_statement_stats is set to on
Next
From: Tom Lane
Date:
Subject: Re: Server does not start when log_statement_stats is set to on