Warn when creating or enabling a subscription with max_logical_replication_workers = 0

Поиск
Список
Период
Сортировка
От Yugo Nagata
Тема Warn when creating or enabling a subscription with max_logical_replication_workers = 0
Дата
Msg-id 20260204140731.0e4b511906ac748abad1f3d9@sraoss.co.jp
обсуждение исходный текст
Ответы Re: Warn when creating or enabling a subscription with max_logical_replication_workers = 0
Список pgsql-hackers
Hi,

I would like to propose emitting a warning when creating or enabling a
subscription while max_logical_replication_workers is set to 0. In this
case, the CREATE/ALTER SUBSCRIPTION command completes successfully without
any warning, making it difficult to notice that logical replication cannot
start.

Of course, users can confirm whether logical replication is working by
checking system views such as pg_stat_replication or pg_stat_subscription.
However, emitting warnings explicitly in these cases would make this
situation more visible. We have seen user reports where this behavior
caused confusion, with users wondering why replication did not start.

I've attached a patch to address this.

Regards,
Yugo Nagata

-- 
Yugo Nagata <nagata@sraoss.co.jp>

Вложения

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