Re: pgsql: Change replication connection log format to allow for a database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Change replication connection log format to allow for a database
Дата
Msg-id 20210.1269536418@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Change replication connection log format to allow for a database  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: pgsql: Change replication connection log format to allow for a database  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-committers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Heikki Linnakangas wrote:
>> I'm afraid this doesn't translate well:
>>
>>> --- 222,232 ----
>>> */
>>> if (am_walsender)
>>> ereport(LOG,
>>> !                 (errmsg("replication connection authorized: user=%s host=%s%s%s",
>>> !                         port->user_name,
>>> !                         port->remote_host, port->remote_port[0] ? " port=" : "",
>>> !                         port->remote_port)));
>>> !
>>> else if (Log_connections)
>>> ereport(LOG,
>>> (errmsg("connection authorized: user=%s database=%s",

> Ok, I just realized that this was copy-pasted from BackendInitialize, so
> I guess it's OK as it is...

Two flat-out violations of our message style guidelines doesn't make it
right.  I agree with your proposed change for both.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pgsql: Change replication connection log format to allow for a database
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Change replication connection log format to allow for a database