Re: [GENERAL] reload postgresql with invalid pg_hba.conf

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] reload postgresql with invalid pg_hba.conf
Дата
Msg-id 25480.1505763360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] reload postgresql with invalid pg_hba.conf  (jotpe <jotpe@posteo.de>)
Ответы Re: [GENERAL] reload postgresql with invalid pg_hba.conf  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
jotpe <jotpe@posteo.de> writes:
> A system administration applied an invalid line into the pg_hba.conf 
> file and called "service postgresql reload". Since that command doesn't 
> return any error and leaves with exit code 0 it seams that new 
> configuration was applied.

> Of course postgresql added a warning to the log file: "pg_hba.conf not 
> reloaded".
> But even when I execute SELECT pg_reload_conf(), true is returned.

> Is this the desired behavior?

I wouldn't say it's desired behavior, exactly, but there's no very
good way to improve it.  pg_ctl has no visibility into what the postmaster
is thinking.
        regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: jotpe
Дата:
Сообщение: [GENERAL] reload postgresql with invalid pg_hba.conf
Следующее
От: Rafal Pietrak
Дата:
Сообщение: Re: [GENERAL] looking for a globally unique row ID