Re: Synchronous replication question

From: Keith <keith(at)keithf4(dot)com>
To: CS DBA <cs_dba(at)consistentstate(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Synchronous replication question
Date: 2015-07-07 18:01:30
Message-ID: CAHw75vvYAfWQ41e4yq_KwpiLWjoCT96T3JaMdiUAMY3riVDaRg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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
>

No, it means that it requires, at minimum, one standby to confirm that the
transaction has been committed there before the master confirms it back to
the client. Look at this section of the docs

http://www.postgresql.org/docs/9.4/static/warm-standby.html#SYNCHRONOUS-REPLICATION
http://www.postgresql.org/docs/9.4/static/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Payal Singh 2015-07-07 18:03:31 Re: Synchronous replication question
Previous Message CS DBA 2015-07-07 17:45:42 Synchronous replication question