Re: Pause streaming replication

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Rita <rmorgan466(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Pause streaming replication
Date: 2021-11-11 00:24:45
Message-ID: 476bcc51-c1e4-1fb1-24c6-07cd5f6d5d80@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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().

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rita 2021-11-11 01:36:45 Re: Pause streaming replication
Previous Message Rita 2021-11-10 21:25:05 Pause streaming replication