Re: Logical replication launcher did not automatically restart when got SIGKILL

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Logical replication launcher did not automatically restart when got SIGKILL
Дата
Msg-id CAHGQGwFuTCT4OYGy3ep=21O+KzD1UN3TbKuMvouYd0dLiAzngA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Logical replication launcher did not automatically restart when got SIGKILL  ("cca5507" <cca5507@qq.com>)
Ответы Re: Logical replication launcher did not automatically restart when got SIGKILL
Список pgsql-hackers
On Fri, Jul 25, 2025 at 10:53 PM cca5507 <cca5507@qq.com> wrote:
>
> > For example, we could add a check like the following to 013_crash_restart.pl.
> > Thoughts?
> >
> > -----------------
> > is($node->safe_psql('postgres',
> > "SELECT count(*) = 1 FROM pg_stat_activity WHERE backend_type =
> > 'logical replication launcher'"),
> > 't',
> > 'logical replication launcher is running after crash');
> > -----------------

Patch attached.
I confirmed that the test fails when applied to a version before
commit b5d084c5353 (i.e., before the bug was fixed), and it passes
on HEAD with the patch applied.

> Agree, but we need note that the logical replication launcher won't be registered in some case. (see
ApplyLauncherRegister())

Since 013_crash_restart.pl doesn't set any parameters that would
prevent the logical replication launcher from starting, I think
we don't need to worry about that. No??

Regards,

--
Fujii Masao

Вложения

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