Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aR6Od-0008H7-TS for pgsql-sql@arkaria.postgresql.org; Wed, 03 Feb 2016 22:59:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aR6Od-0005t6-G7 for pgsql-sql@arkaria.postgresql.org; Wed, 03 Feb 2016 22:59:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aR6Oc-0005sU-OZ for pgsql-sql@postgresql.org; Wed, 03 Feb 2016 22:59:34 +0000 Received: from starfish.geekisp.com ([216.168.135.166]) by makus.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aR6OZ-0000Nr-SX for pgsql-sql@postgresql.org; Wed, 03 Feb 2016 22:59:33 +0000 Received: (qmail 19218 invoked by uid 1003); 3 Feb 2016 22:59:29 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=misuse.org; b=sxPfB5HSaKho91Yy0Y8eA6cty/E7/uFqIZkRQcjk0KFHTOYpgwElHpAofCpphM+TZeqOosxiAkn5JOKGmfwYkF+q4NohZH+xxHCCMOrB6Jmpvet0Cz3G/wkWi/Q3Lpbu ; Received: from unknown (HELO mail-oi0-f44.google.com) (steve@misuse.org@209.85.218.44) by mail.geekisp.com with (RC4-SHA encrypted) SMTP; 3 Feb 2016 22:59:29 -0000 Received: by mail-oi0-f44.google.com with SMTP id w5so4718067oie.1 for ; Wed, 03 Feb 2016 14:59:29 -0800 (PST) X-Gm-Message-State: AG10YOTY0lZI3hqci9aj06wLqA/Yc1BQN7ZDXOOkXd4pf6iUIy+hE+i7zFV27aj5SVkD9J4iApJDAptqP0Lpjw== MIME-Version: 1.0 X-Received: by 10.202.3.213 with SMTP id 204mr934840oid.48.1454540369457; Wed, 03 Feb 2016 14:59:29 -0800 (PST) Received: by 10.202.228.131 with HTTP; Wed, 3 Feb 2016 14:59:29 -0800 (PST) In-Reply-To: <56B24B03.4090401@purtz.de> References: <56B24B03.4090401@purtz.de> Date: Wed, 3 Feb 2016 14:59:29 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Replication From: Steve Midgley Cc: pgsql-sql@postgresql.org Content-Type: multipart/alternative; boundary=001a113b97ea087c3f052ae5920c X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org --001a113b97ea087c3f052ae5920c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Feb 3, 2016 at 10:46 AM, J=C3=BCrgen Purtz wrote= : > Hi all, > > replication is a complex topic, so I tried to get a systematic view on it= . > Among others I found 4 mutually independent (?) concepts: > > - Log-Shipping vs. Streaming (LS vs. S) > - Physical Format vs. Logical Decoded Format (PFo vs. LFo) > - Synchronous vs. asynchronous transfer (STr vs ASTr) > - hot standby vs. warm standby > > My questions are: > > 1. Do you agree to this systematization into 4 categories? > 2. Do you agree, that only this 5 out of 8 possibilities exist? > > I think you're actually asking what replication strategies Postgres supports out of the box, and of those which are viable combinations? If so, someone else will have to say whether your categories are comprehensive. If you are asking about what replication strategies are possible more broadly (and implementable with Postgres) the list gets bigger. I've messed around with MVCC (multi-version concurrency control) and there are several implementations out there - I looked at PouchDB in javascript and it seemed plausible to implement on top of specifically organized Postgres DBs. This could enable a master-master federated data replication network with no central authority. Record collisions are unhappy possibilities, and locking anything becomes impossible in a meaningful way. Notable also that getting good test case coverage is pretty hard. But if you are trying to find strategies to replicate your data, in some cases that's an interesting approach.. Steve --001a113b97ea087c3f052ae5920c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On W= ed, Feb 3, 2016 at 10:46 AM, J=C3=BCrgen Purtz <juergen@purtz.de> wrote:
=20 =20 =20
Hi all,

replication is a complex topic, so I tried to get a systematic view on it. Among others I found 4 mutually independent (?) concepts:
  • Log-Shipping vs. Streaming (LS vs. S)
  • Physical Format vs. Logical Decoded Format (PFo vs. LFo)
  • Synchronous vs. asynchronous transfer (STr vs ASTr)
  • hot standby vs. warm standby
My questions are:
  1. Do you agree to this systematization into 4 categories?
  2. Do you agree, that only this 5 out of 8 possibilities exist?
  3. =
I think you're actually asking what replic= ation strategies Postgres supports out of the box, and of those which are v= iable combinations? If so, someone else will have to say whether your categ= ories are comprehensive.

If you are asking about w= hat replication strategies are possible more broadly (and implementable wit= h Postgres) the list gets bigger. I've messed around with MVCC (multi-v= ersion concurrency control) and there are several implementations out there= - I looked at=C2=A0PouchDB in javascri= pt and it seemed plausible to implement on top of specifically organized Po= stgres DBs. This could enable a master-master federated data replication ne= twork with no central authority. Record collisions are unhappy possibilitie= s, and locking anything becomes impossible in a meaningful way. Notable als= o that getting good test case coverage is pretty hard.

=
But if you are trying to find strategies to replicate your data, in so= me cases that's an interesting approach..

Stev= e
--001a113b97ea087c3f052ae5920c--