From: Gilberto Castillo <gilberto.castillo@etecsa.cu>
To: Alberto Olivares <alberto.olivares@snowflakesoftware.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Replication broken. Stale data in slave Database
Date: Wed, 24 Jun 2015 11:07:16 -0500 (GMT+5)
Message-ID: <37952.192.168.207.54.1435162036.squirrel@webmail.etecsa.cu> (raw)
In-Reply-To: <CAGdoAzgERUntgCy-gG2wpL+g3T1rEDDSa+G88=W6pAFXscJ2mw@mail.gmail.com>
References: <CAGdoAzgERUntgCy-gG2wpL+g3T1rEDDSa+G88=W6pAFXscJ2mw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
> Hi all,
>
> We have set up a Streaming replication.
>
> Master database serves temporal data being replicated on the Slave
> database.
>
> In the event that we shut down the Master database, the slave database
> contains residual data that we do not need.
>
> Is there any way to trigger a SQL to delete all data from the slave
> database in the event that the replication is broken?
>
What your version PG?
Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gilberto.castillo@etecsa.cu, alberto.olivares@snowflakesoftware.com
Subject: Re: Replication broken. Stale data in slave Database
In-Reply-To: <37952.192.168.207.54.1435162036.squirrel@webmail.etecsa.cu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox