Re: Test failover for PosgreSql 9.2

From: Francisco Reyes <lists(at)natserv(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Test failover for PosgreSql 9.2
Date: 2015-09-26 02:05:18
Message-ID: 5605FD5E.9000802@natserv.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/25/2015 11:20 AM, yuryu wrote:
> According to manual I have to kill completely Master and "touch" a trigger
> to make Slave new Master.

You don't have to do anything in the master. If you have configured the
slave to check for a file, then it will become Read Write when that file
is created.

You can also do
pg_ctlcluster #.# main promote

Where #.# is version like
pg_ctlcluster 9.3 main promote

In the slave you can run this to check if it is in read only
(replicating) or read write
select pg_is_in_recovery();

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2015-09-26 07:31:01 Re: Listen/notify, equivalents on other DBs
Previous Message Mark Morgan Lloyd 2015-09-25 21:41:25 Listen/notify, equivalents on other DBs