Re: Server does not start when log_statement_stats is set to on
От | Tom Lane |
---|---|
Тема | Re: Server does not start when log_statement_stats is set to on |
Дата | |
Msg-id | 10419.1198695493@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Server does not start when log_statement_stats is set to on (Alvaro Herrera <alvherre@CommandPrompt.com>) |
Ответы |
Re: Server does not start when log_statement_stats is set to on
|
Список | pgsql-bugs |
Alvaro Herrera <alvherre@CommandPrompt.com> writes: > Tom Lane wrote: >> 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. > 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). Yeah, it would, and that is the wrong thing. It is definitely not acceptable to throw an ERROR unconditionally, as that would cause postmaster abort during SIGHUP if an error is introduced into the config file after startup. It's possible that we could add some state by which assign-hook routines could check whether this is initial startup or not, but then we'd still have the issue of whether there are any other reasons not to throw ERROR just there (I have a feeling there are some internal-to-GUC reasons why not, as well as the obvious one that SIGHUP shouldn't be able to crash the postmaster). The whole idea sounds pretty shaky to me, and definitely not something to change in late beta. LOG we could do now without risking breaking anything. regards, tom lane
В списке pgsql-bugs по дате отправления: