Re: [GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Adrian Klaver
On 01/04/2015 06:54 PM, Jayadevan M wrote: On Sun, Jan 4, 2015 at 8:01 PM, Adrian Klaver mailto:adrian.kla...@aklaver.com>> wrote: That was indeed the case. I had copied/pasted the code in Microsoft Word and then copied/pasted from Word to recovery.conf. Word intelligently (?) changed the 'q

Re: [GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Jayadevan M
On Sun, Jan 4, 2015 at 8:01 PM, Adrian Klaver wrote: > On 01/04/2015 06:09 AM, Jayadevan M wrote: > >> Hi, >> I have streaming replication set up, with PostgreSQL 9.3. The entries in >> recovery.conf on the slave are as follows - >> standby_mode = 'on' >> primary_conninfo = 'host=127.0.0.1 port=2

Re: [GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Andreas Kretschmer
Jayadevan M wrote: > > Replication is working fine. The trigger file does get created by the failover > script when I shut down the primary. But I just keep getting these entries in > the log file in the slave and it does not get promoted. > FATAL:  could not connect to the primary server: could

Re: [GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Adrian Klaver
On 01/04/2015 06:09 AM, Jayadevan M wrote: Hi, I have streaming replication set up, with PostgreSQL 9.3. The entries in recovery.conf on the slave are as follows - standby_mode = 'on' primary_conninfo = 'host=127.0.0.1 port=2345 user=postgres password=password' restore_command = 'cp /pgdata/archi

[GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Jayadevan M
Hi, I have streaming replication set up, with PostgreSQL 9.3. The entries in recovery.conf on the slave are as follows - standby_mode = 'on' primary_conninfo = 'host=127.0.0.1 port=2345 user=postgres password=password' restore_command = 'cp /pgdata/archive/%f "%p"' trigger_file = ‘/tmp/down.trg’ I