Re: Sync replication waits for only 1 slave

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: A J <s5aly(at)yahoo(dot)com>
Cc: PG Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Sync replication waits for only 1 slave
Date: 2011-06-07 22:07:10
Message-ID: BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Jun 7, 2011 at 10:33 PM, A J <s5aly(at)yahoo(dot)com> wrote:

> Having a master and 2 slaves in synchronous replication mode in 9.1
> The master seems to wait for only one slave to respond before considering
> the transaction to be complete. I have done the setting for master to wait
> for all the slaves to finish:
> synchronous_standby_names = '*'
> I even tried replacing * with both the slave application_names.
> Still master just waits for a single slave. Am I doing something incorrect
> or is it a limitation ?

No, its a design decision to improve availability and performance.

You can list the second standby also, so it can take over in the event
of failure.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jerry Sievers 2011-06-08 00:53:45 Re: Switchover of Master and Slave roles
Previous Message A J 2011-06-07 21:33:53 Sync replication waits for only 1 slave