Re: Disable Streaming Replication without restarting either master or slave - Mailing list pgsql-general

From François Beausoleil
Subject Re: Disable Streaming Replication without restarting either master or slave
Date
Msg-id 3F310B08-0E32-4007-976B-CE08D1526355@teksol.info
Whole thread Raw
In response to Disable Streaming Replication without restarting either master or slave  (Samba <saasira@gmail.com>)
Responses Re: Disable Streaming Replication without restarting either master or slave
List pgsql-general
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() ?


Hope that helps!
François Beausoleil

pgsql-general by date:

Previous
From: Thomas Reiss
Date:
Subject: How to handle ALTER TABLE DROP CONSTRAINT, ADD CONSTRAINT USING INDEX with foreign keys
Next
From: Adrian Klaver
Date:
Subject: Re: How to handle ALTER TABLE DROP CONSTRAINT, ADD CONSTRAINT USING INDEX with foreign keys