Asynchronous replication in postgresql - Mailing list pgsql-general

From Deole, Pushkar (Pushkar)
Subject Asynchronous replication in postgresql
Date
Msg-id 78A4D6BFBAA5BA49A5E94DA00A6A76E3535354@AZ-FFEXMB04.global.avaya.com
Whole thread Raw
Responses Re: Asynchronous replication in postgresql  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-general

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. How can we do this automatically?

For #3, this seems to be quite complicated. Is this even possible using streaming replication? If yes, how can this be achieved?

 

Your help is greatly appreciated in this regard.

Thank you very much..

 

 

pgsql-general by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: reltoastidxid altenates in postgresql 9.4
Next
From: Robert Inder
Date:
Subject: Basic Question on Point In Time Recovery