pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: A J <s5aly@yahoo.com>
Cc: PG Admin <pgsql-admin@postgresql.org>
Subject: Re: Sync replication waits for only 1 slave
Date: Tue, 7 Jun 2011 23:07:10 +0100
Message-ID: <BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com> (raw)
In-Reply-To: <488118.23133.qm@web120004.mail.ne1.yahoo.com>
References: <488118.23133.qm@web120004.mail.ne1.yahoo.com>

On Tue, Jun 7, 2011 at 10:33 PM, A J <s5aly@yahoo.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



view thread (2+ messages)

Message-ID: <BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com>
Permalink:  ../BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: simon@2ndQuadrant.com, s5aly@yahoo.com
  Subject: Re: Sync replication waits for only 1 slave
  In-Reply-To: <BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com>
  References: <488118.23133.qm@web120004.mail.ne1.yahoo.com> <BANLkTik7KtHWYgJkhnn7kh0dmahKec6Ytg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox