Re: Disable Streaming Replication without restarting either master or slave

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: François Beausoleil <francois(at)teksol(dot)info>
Cc: Samba <saasira(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Disable Streaming Replication without restarting either master or slave
Date: 2012-05-29 17:15:12
Message-ID: CAHGQGwEFJgGqmDzWkNn7k955YSbdqd5szYyeJwp1T=2uY7Fs1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 29, 2012 at 10:17 PM, François Beausoleil
<francois(at)teksol(dot)info> wrote:
> Hi!
>
> Le 2012-05-29 à 06:18, Samba a écrit :
>
> Is it possible stop/disable streaming replication without stopping or
> restarting either master or slave servers?
>
> Since stopping or restarting the postgres servers would involve complete
> invalidation of the connection pool [Java/JEE app server pool] that may take
> a few minutes before the application becomes usable, it would be great if
> there is a way we can disable replication [for maintenance reasons like
> applying patches or upgrades, etc].
>
>
> Are per-chance looking for pg_xlog_replay_pause() and
> pg_xlog_replay_resume() ?

Those can pause and resume WAL replay in the standby, but not streaming
replication. Even while WAL replay is being paused, WAL can be streamed
from the master to the standby.

Regards,

--
Fujii Masao

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Konoplev 2012-05-29 17:29:56 Re: Disable Streaming Replication without restarting either master or slave
Previous Message Fujii Masao 2012-05-29 17:10:34 Re: Disable Streaming Replication without restarting either master or slave