Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jIcNX-0001bH-11 for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 18:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jIcNV-0006kN-Ql for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 18:09:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jIcNV-0006kF-Dc for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 18:09:45 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIcNS-0004eT-Ub for pgsql-general@postgresql.org; Sun, 29 Mar 2020 18:09:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 928B77F3; Sun, 29 Mar 2020 14:09:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 29 Mar 2020 14:09:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=/ 8SJ19CwxAo+sPZlszWTouc+o92+wfJkk0evE/TtJJg=; b=R7B7WxHwkS5vd6e3o j4jwW6+5YXpv6WO1e0ajzOQqxpFdZ5u/cG4jcHX+pWlW0nYT8gLfjY4IanBEwa21 RK9T9nteB4Gqtb42m23IQFSFD+B5wuQPbuwig3nWnEDSnuR/SoW3vkDtS840rrBQ nAhEFYJVxbXZEokoEuyFUjCBYMnLyh9JHxgNhx7t71A3h4/yZLtA9mSbeBkBWWIF 1U3lxT8ff2VRxCqrwgrYtIM7alF0lXS7lBU8NRYtjWlI93nzorN1cByBS2LYjwhH m7avhk/4LrGvyrm0yH9YgXGg8qXKRc/HfX/YZT4ezwHqo7A7FQGhOSycek5ExhRo W01sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=/8SJ19CwxAo+sPZlszWTouc+o92+wfJkk0evE/TtJ Jg=; b=1M4b1fKYDKD0pwngSRohwJZ7POjGpU38/gg8qHQcAPneuIppaRvbdf0Cr iMqdNYPQrR5TnHjY/3a5xO8tyxEIljSKfABvkKwC8zoLwR/msAZ5+nR/XGS586nz Ka3haMTVG0zIPBI8tMlYkkxvV39vpePAU4YdXQ2M7gIGDS05ZtVPzhGAiDAjp3W6 lSOhpY2Ky/QIGB0xnIGJAuE4A4SZaK2SFASWMTwgAvGVYqgiFWrEV2TdogcSIpn/ SVFdzZqiUjLkkyVVRoQhInCxkSulqLvpOAW9bWCSTW9r0topzTACRGKcWwWPRAdK JYOe/5GYxYztNKbk/IguttN1mQgIw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeifedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefhhenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecukfhppeejhedrudejvddrledtrdelvdenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (75-172-90-92.tukw.qwest.net [75.172.90.92]) by mail.messagingengine.com (Postfix) with ESMTPA id 3120B3280065; Sun, 29 Mar 2020 14:09:39 -0400 (EDT) Subject: Re: Hot standby from Debian to Windows To: Andrus , pgsql-general References: <97FA59FAD55C40FDB8D6882CC29222AC@dell2> From: Adrian Klaver Message-ID: Date: Sun, 29 Mar 2020 11:09:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <97FA59FAD55C40FDB8D6882CC29222AC@dell2> Content-Type: text/plain; charset=windows-1257; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/29/20 5:35 AM, Andrus wrote: > Hi! > > Postgres 12 server is running on Debian 10 and has number of databases. > > How to mirror changes of those databases to Windows 10 workstation which > runs also Postgres 12. > > Changes in server databases in Debian should sent to Postgres 12 > database in Windows over internet. > > If Debian server goes down, users can change server address to Windows > computer as temporary workaround and continue working. Since you are moving between different OSes you will need to use some form of logical replication as binary replication will not work. Given that you are Postgres 12 you could use the builtin logical replication: https://www.postgresql.org/docs/12/logical-replication.html How that needs to managed is going to need more information. As a start: 1) Downtime allowed? 2) All databases to be replicated or just some? 3) Permissible lag between servers? 4) How are you going to deal with the down server and how do you plan on bringing it up again? > > Andrus. > > -- Adrian Klaver adrian.klaver@aklaver.com