Re: Pause streaming replication - Mailing list pgsql-general

From Ben Chobot
Subject Re: Pause streaming replication
Date
Msg-id 476bcc51-c1e4-1fb1-24c6-07cd5f6d5d80@silentmedia.com
Whole thread Raw
In response to Pause streaming replication  (Rita <rmorgan466@gmail.com>)
Responses Re: Pause streaming replication
List 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 by date:

Previous
From: Rita
Date:
Subject: Pause streaming replication
Next
From: Rita
Date:
Subject: Re: Pause streaming replication