From: Michael Paquier <michael.paquier@gmail.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Azimuddin Mohammed <azimeiu@gmail.com>
Cc: Rakesh Kumar <rakeshkumar464@aol.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Sync replication
Date: Fri, 26 Jan 2018 10:37:38 +0900
Message-ID: <20180126013738.GG17847@paquier.xyz> (raw)
In-Reply-To: <20180126012143.GB2416@tamriel.snowman.net>
References: <CAKUuFd4K7OC8s28=WtHQ5X=hpriqZD+JUCTyeHS3kj=jVq4Nkw@mail.gmail.com>
<1612e8fd701-1722-18849@webjas-vae073.srv.aolmail.net>
<CAKUuFd5GCiJip8q8QOMQL0bZUBDbGnXTNJVxoLzhKe0+nwZo_w@mail.gmail.com>
<20180126012143.GB2416@tamriel.snowman.net>
On Thu, Jan 25, 2018 at 08:21:43PM -0500, Stephen Frost wrote:
> That's correct, which is why it's encouraged to have multiple replicas
> configured when using synchronous replication. In v10, it's possible to
> specify how many synchronous replicas are required to have acknowledged
> a given transaction before a COMMIT is returned to the applicaiton.
> Please review the documentation here:
>
> https://www.postgresql.org/docs/current/static/warm-standby.html#SYNCHRONOUS-REPLICATION
Be careful about the performance impact if there is network latency
between a primary and its standbys. One small correction to what Stephen
says here. It is possible to define multiple synchronous standbys in
v9.6. v10 has added the possibility to define quorum groups. Note that
the grammar as been kept backward-compatible across versions.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: michael.paquier@gmail.com, sfrost@snowman.net, azimeiu@gmail.com, rakeshkumar464@aol.com, pgsql-general@postgresql.org
Subject: Re: Sync replication
In-Reply-To: <20180126013738.GG17847@paquier.xyz>
* 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