Re: Synchronous replication question

From: Payal Singh <payal(at)omniti(dot)com>
To: CS DBA <cs_dba(at)consistentstate(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Synchronous replication question
Date: 2015-07-07 18:03:31
Message-ID: CANUg7LCDEQnn-Wqw_ONT2uEouq8jzFH4UoT7+imV3UfqMbwTbQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

As per
http://www.postgresql.org/docs/9.4/static/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES
at any time the primary waits for ACK from just one standby server in the
list. (The first one, and if its not available, the second one and so on).
So even if something goes amiss with the synchronous slave, the secondary
slave will become synchronous provided its listed in
synchronous_standby_names.

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Tue, Jul 7, 2015 at 1:45 PM, CS DBA <cs_dba(at)consistentstate(dot)com> wrote:

> All;
>
> The docs specify this (9.4 docs):
>
> Synchronous replication offers the ability to confirm that all changes
> made by a transaction have been transferred to *one* synchronous standby
> server. This extends the standard level of durability offered by a
> transaction commit. This level of protection is referred to as 2-safe
> replication in computer science theory.
>
> Does this mean that Synchronous replication only works with one standby?
>
> Thanks in advance
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alberto Olivares 2015-07-10 12:54:57 Default maximum time replication between master and slave databases
Previous Message Keith 2015-07-07 18:01:30 Re: Synchronous replication question