Re: Pause streaming replication

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: Pause streaming replication
Дата
Msg-id 476bcc51-c1e4-1fb1-24c6-07cd5f6d5d80@silentmedia.com
обсуждение исходный текст
Ответ на Pause streaming replication  (Rita <rmorgan466@gmail.com>)
Ответы Re: Pause streaming replication
Список pgsql-general
Rita wrote on 11/10/21 1:25 PM:
> Hello.
>
> I am testing alerting on my primary and standby setup. I have async 
> replication working but I would like to temporarily pause it so the 
> value of 'state' isn't streaming. (select * from pg_stat_replication).
>
> How can I do that?

By reading the fine manual: 
https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-RECOVERY-CONTROL-TABLE

The function you are looking for is pg_wal_replay_pause().



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

Предыдущее
От: Rita
Дата:
Сообщение: Pause streaming replication
Следующее
От: Rita
Дата:
Сообщение: Re: Pause streaming replication