About a recently-added permission-related error message

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема About a recently-added permission-related error message
Дата
Msg-id 20230320.170541.1446670788521796869.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответы Re: About a recently-added permission-related error message  (Yugo NAGATA <nagata@sraoss.co.jp>)
Список pgsql-hackers
I found an error message added by de4d456b406bf502341ef526710d3f764b41e2c8.

When I incorrectly configured the primary_conninfo with the wrong
user, I received the following message on the server logs of both
servers involved in a physical replcation set.

[27022:walsender] FATAL:  permission denied to start WAL sender
[27022:walsender] DETAIL:  Only roles with the REPLICATION attribute may start a WAL sender process.

I'm not sure if adding the user name in the log prefix is a common
practice, but without it, the log line might not have enough
information. Unlike other permission-related messages, this message is
not the something human operators receive in response to their
actions. It seems similar to connection authorization logs where the
user name is important. So, I'd like to propose the following
alternative.

[27022:walsender] DETAIL:  The connection user "r1" requires the REPLICATION attribute.

What do you think about this change?

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Richard Guo
Дата:
Сообщение: Re: Missing rules for queryjumblefuncs.{funcs,switch}.c for maintainer-clean
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Timeline ID hexadecimal format