Re: duplicate logging in pg_createsubscriber

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: duplicate logging in pg_createsubscriber
Дата
Msg-id aOZPIoa0vz8KCgCk@paquier.xyz
обсуждение исходный текст
Ответ на duplicate logging in pg_createsubscriber  (Peter Smith <smithpb2250@gmail.com>)
Список pgsql-hackers
On Wed, Oct 08, 2025 at 05:29:20PM +1100, Peter Smith wrote:
> It didn't look right to me.
>
> I found the code is doing:
> - pg_log_info("creating the replication slot unconditional inside
> create_logical_replication_slot
> - pg_log_info("create replication slot...") immediately after call to
> create_logical_replication_slot
>
> Perhaps that 2nd log was once supposed to say "created" (past tense),
> but even that seemed redundant.
>
> Here is a small patch to remove the log duplication by keeping only
> the log *within* the function.
>
> Thoughts?

Agreed.  This was bugging me a bit today while looking at some logs
generated by the TAP tests.  We don't gain any additional information
here, so let's remove the duplicates.  I'll check that later, it's
late now.
--
Michael

Вложения

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