Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aR2Sp-0005WT-Ra for pgsql-sql@arkaria.postgresql.org; Wed, 03 Feb 2016 18:47:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aR2Sp-000339-BN for pgsql-sql@arkaria.postgresql.org; Wed, 03 Feb 2016 18:47:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aR2Rq-0001xC-J7 for pgsql-sql@postgresql.org; Wed, 03 Feb 2016 18:46:38 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1aR2Rj-0004BK-Ka for pgsql-sql@postgresql.org; Wed, 03 Feb 2016 18:46:38 +0000 Received: from [192.168.178.26] ([84.165.220.227]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0Lpijq-1Zo9GE2CAA-00fSxt for ; Wed, 03 Feb 2016 19:46:28 +0100 From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Subject: Replication To: pgsql-sql@postgresql.org Message-ID: <56B24B03.4090401@purtz.de> Date: Wed, 3 Feb 2016 19:46:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------030306040306050204050804" X-Provags-ID: V03:K0:itFPCLebHLQ4F0MGTpj0YdDeEwfu58z7PMLihVp05GisZxJJoFC R9o5fG+T11xbxXFK3qYS9UYVjJSHxOOfW0WH9p0ITVEVPEOTKRjADGtMew+DLo7K7JpHdKs pMf8Yi2G0Lzsi8BweoLVyvEMucJlFM6GZVnLBnnEj7KZQXon2Y6QOa9dIb02Tnk0+Xlotv8 Balhuw4EfRJeFfNCTkMzQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:gAtaFzknH/4=:m/AVsJiVgyVbfG8K+MChEZ 5COtgTrYehwZn0jIVaVhUINbyiY3x/jp9RwXHtKvYj8vYyXmFd9bxOuV1VYS2DWmFA/7uov9c zboKsNLsC3GzhbiPRDT7uCQJ/P/AI81FZ0xqqQd+mkj09i1PlVPX1DI8fCQfrUi4ViALJUpL3 i5snPyNvNBfk3cYCDby7Ic9x6LisfjlhEvB/RkvqUKzGAsmGZi721Bgmrwd2VKaaXYPAbBwC/ VjLZZtmMae2TYNZqyEVoxoFjUy5UxeeQF9HR6wG9VUS6YlxPkiLW5h/lhJwEHkMV47y0joZlV a0Gb+Dd3DkAvXAcM+woJUh3m8hXCWAA8Dzihle4KVNTCJCMHhNXt79GIBtWE92nJKfNa4DYSa /8dsFZTGG+GgUS391Ll+TMJ7QlEpngNVgTnRvD45fOpgGSGTN/Esrql2tkiBz1ByDs11eFm6A MeIED2cNq5UW4/yEbg4rOWTk9s9FUWI1n9bEc70aCJ9pANsGeRQxesBnjRpsphX2S+aZKqPRa 8q5/IpHs1GIXzpH6321zXTo4BZFCl7jQlF2cQwUUkcuwpFkJiyxvjM3+8cA4l0oPzi3XU03Vg Gx/WbV5pEwyyBT/ryuqw8eSVZDP4KuZbU7TITNuvWUib7PpUTn0pJdOwleHyAmWMlVOW9H3TT gwJwTj/qHnbvc7eZ4N3tzT7ohdQFt6MAj9TY2/bImCA00oQ1+jkW0h8ZGGaLLnqDU7p4sxRAj E4PC61VvZPKOJS7m X-Pg-Spam-Score: -1.9 (-) 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 This is a multi-part message in MIME format. --------------030306040306050204050804 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 'Mutually independent' implies that there are 2 power 4 = 16 possible combinations. But I believe, there are some limitations. First, hot and warm standby (at the standby site) are possible in all cases. Second, for me the following 5 out of 8 seems to be possible: LS - PFo - ASTr (Asynchronous Log-shipping in Physical Format) S - PFo - STr (Synchronous Streaming in Physical Format) S - PFo - ASTr (Asynchronous Streaming in Physical Format) S - LFo - STr (Synchronous Streaming in Logical Format) S - LFo - ASTr (Asynchronous Streaming in Logical Format) 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? Regards Jürgen Purtz --------------030306040306050204050804 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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
'Mutually independent' implies that there are 2 power 4 = 16 possible combinations. But I believe, there are some limitations.

First, hot and warm standby (at the standby site) are possible in all cases. Second, for me the following 5 out of 8 seems to be possible:

LS - PFo - ASTr  (Asynchronous Log-shipping in Physical Format)
S - PFo - STr      (Synchronous Streaming in Physical Format)
S - PFo - ASTr  (Asynchronous Streaming in Physical Format)
S - LFo - STr    (Synchronous Streaming in Logical Format)
S - LFo - ASTr  (Asynchronous Streaming in Logical Format)

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?

Regards
Jürgen Purtz

--------------030306040306050204050804--