Re: Invalid primary_slot_name triggers warnings in all processes on reload

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Invalid primary_slot_name triggers warnings in all processes on reload
Дата
Msg-id CAHGQGwGbXxsJQ6ipY=RnO3uJSjU+7zPjVL-Q7p6OfUd31A2o5A@mail.gmail.com
обсуждение исходный текст
Ответ на Invalid primary_slot_name triggers warnings in all processes on reload  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: Invalid primary_slot_name triggers warnings in all processes on reload
Список pgsql-hackers
On Fri, Sep 12, 2025 at 9:12 PM Fujii Masao <masao.fujii@gmail.com> wrote:
>
> Hi,
>
> While reviewing the patch at [1], I noticed that if primary_slot_name is
> set to an invalid slot name in postgresql.conf and the configuration file
> is reloaded, all running postgres processes emit the WARNING message
> as follows. Isn't this a bug?
>
> To fix this issue, GUC_check_errmsg() should be used instead of ereport()
> when an invalid slot name is found in the setting. Thoughts?

Another simple fix would be to have processes other than the postmaster
report invalid primary_slot_name at DEBUG3 instead of WARNING.
In that case, only the postmaster reports it at WARNING, so by default
only that message appears in the log file. This matches the behavior for
other GUC parameters with invalid settings.

I've attached a patch implementing this approach. Thought?

--
Fujii Masao

Вложения

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