Asynchronous streaming replication in postgresql

From: "Deole, Pushkar (Pushkar)" <pdeole(at)avaya(dot)com>
To: "pgsql-cluster-hackers(at)postgresql(dot)org" <pgsql-cluster-hackers(at)postgresql(dot)org>
Subject: Asynchronous streaming replication in postgresql
Date: 2015-03-12 05:56:49
Message-ID: 78A4D6BFBAA5BA49A5E94DA00A6A76E35354AE@AZ-FFEXMB04.global.avaya.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cluster-hackers

Hi,

I am new to postgreSql and evaluating the streaming replication for my use case. My use case is:

1. Need to replicate data from primary database (master) to secondary database (slave) asynchronously.
2. If master goes down, the slave should automatically be promoted to master.
3. Later, when the original primary server (original master) is brought up again, it should obtain back its master role and the new master should assume the slave again as it was with original setup.

For #1, the streaming replication of postgresql is good enough.
For #2, we need to create the trigger file in slave. This can be done manually. How can we do this automatically?
For #3, this seems to be quite complicated. Is this possible using streaming replication and if yes then how can this be achieved?

Your help is greatly appreciated in this regard.
Thank you very much..

Responses

Browse pgsql-cluster-hackers by date

  From Date Subject
Next Message Guillaume Lelarge 2015-03-12 06:15:14 Re: Asynchronous streaming replication in postgresql
Previous Message Josh Berkus 2015-01-29 20:32:19 Re: Cluster meeting?