Re: subscriptioncheck failure

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: subscriptioncheck failure
Дата
Msg-id YJ0JV8/fxZKIYEZy@paquier.xyz
обсуждение исходный текст
Ответ на Re: subscriptioncheck failure  (vignesh C <vignesh21@gmail.com>)
Ответы Re: subscriptioncheck failure  (vignesh C <vignesh21@gmail.com>)
Re: subscriptioncheck failure  (vignesh C <vignesh21@gmail.com>)
Список pgsql-hackers
On Thu, May 13, 2021 at 04:14:55PM +0530, vignesh C wrote:
> +$node_publisher->wait_for_catchup('tap_sub');
> +
>  # Ensure a transactional logical decoding message shows up on the slot
>  $node_subscriber->safe_psql('postgres', "ALTER SUBSCRIPTION tap_sub DISABLE");
>
>  # wait for the replication connection to drop from the publisher
>  $node_publisher->poll_query_until('postgres',
> -    'SELECT COUNT(*) FROM pg_catalog.pg_stat_replication', 0);
> +    "SELECT COUNT(*) FROM pg_catalog.pg_replication_slots WHERE slot_name = 'tap_sub' AND active='f'", 1);

There are three places in this test where a slot is disabled, followed
by a wait to make sure that the slot is gone.  Perhaps it would be
better to wrap that in a small-ish routine?
--
Michael

Вложения

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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: Inherited UPDATE/DELETE vs async execution
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: RFC: Logging plan of the running query