Re: PG replication across DataCenters

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: Kaushal Shriyan <kaushalshriyan(at)gmail(dot)com>, Torsten Förtsch *EXTERN* <torsten(dot)foertsch(at)gmx(dot)net>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG replication across DataCenters
Date: 2013-11-23 08:09:04
Message-ID: CAB7nPqQWWfrSvDZ+0meY0jpS9XmeH4uiaXPw7zgoPag0tbnpig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

On Fri, Nov 22, 2013 at 11:46 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
> Michael Paquier wrote:
>> On Fri, Nov 22, 2013 at 10:03 PM, Kaushal Shriyan <kaushalshriyan(at)gmail(dot)com> wrote:
>>> I am not sure i understand the difference between async and sync replication
>>> and on what scenarios i should use async or sync replication. Does it mean
>>> if it is within same DC then sync replication is the best and if it is
>>> across DC replication async is better than sync. Please help me understand.
>
>> In the case of synchronous replication, master node waits for the
>> confirmation that a given transaction has committed on slave side
>> before committing itself. This wait period can cause some delay, hence
>> it is preferable to use sync replication with nodes that far from each
>> other.
>
> I am sure that you wanted to say
> "with nodes *not* that far from each other".
Oops sorry for the typo. Yes I meant of course "not that far".
--
Michael

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2013-11-26 18:32:14 Re: misleading lang_name case in CREATE FUNCTION doc.
Previous Message Albe Laurenz 2013-11-22 14:46:00 Re: PG replication across DataCenters

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2013-11-23 09:00:08 Re: "shared_buffers" and "temp_buffers" why manual and code are different?
Previous Message Tianyin Xu 2013-11-23 07:30:50 "shared_buffers" and "temp_buffers" why manual and code are different?