Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMJBC-0005Uj-IT for pgsql-novice@arkaria.postgresql.org; Fri, 12 Aug 2022 01:09:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oMJBB-0005Cb-9H for pgsql-novice@arkaria.postgresql.org; Fri, 12 Aug 2022 01:09:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMJBA-0005CS-VR for pgsql-novice@lists.postgresql.org; Fri, 12 Aug 2022 01:09:36 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMJB8-00031b-O3 for pgsql-novice@postgresql.org; Fri, 12 Aug 2022 01:09:36 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oMJB5-00AMyZ-Kk; Thu, 11 Aug 2022 21:09:31 -0400 Date: Thu, 11 Aug 2022 21:09:31 -0400 From: Bruce Momjian To: Sacheen Birhade Cc: "pgsql-novice@postgresql.org" Subject: Re: switch between async to sync automatically Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 4, 2022 at 07:40:56AM +0000, Sacheen Birhade wrote: > Hi All, > > > > Can my streaming replication switch between async to sync automatically > depending upon bandwidth? If bandwith/replication link is very healthy, then I > want async replication otherwise sync replication. It should switch between > sync to async. No. We have discussed the option of going from sync to async if the standby stops responding but never agreed on a safe API for this. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson