Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnKY3-00AdcY-OM for pgsql-general@arkaria.postgresql.org; Mon, 02 Oct 2023 15:09:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qnGvq-00EjwE-Bo for pgsql-general@arkaria.postgresql.org; Mon, 02 Oct 2023 11:17:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnGvp-00Ejvf-QT for pgsql-general@lists.postgresql.org; Mon, 02 Oct 2023 11:17:45 +0000 Received: from ssl.schlittermann.de ([46.38.236.101]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnGvm-007m2T-M1 for pgsql-general@lists.postgresql.org; Mon, 02 Oct 2023 11:17:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=schlittermann.de; s=dd201504; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:To:Subject:MIME-Version:Date:Message-ID:Cc: Content-Description:Content-ID:Resent-Cc:Resent-To; bh=Uqv0wfmxkkqmBGeyRWvNNPY95HgZDKVmFVeR/WUs1jw=; b=O3MzVfnHVKvsuqI3FPJf5rxcab TeLWMsLQHLF27NS90zjhqq22GVooVl6kGm4gnyOXO2zwtZNptxiv/FWsiCQF4wLlyCy8vSTOLHBEc I7lNP1VdRp6VCaUWNLi3gdsv7BO9AWMvO9Crj5Sa7r+PxoaVH/w1dZSfRckntqIRj1o0=; Received: by ssl.schlittermann.de with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.x) (envelope-from ) id 1qnGtd-00277x-Hw for pgsql-general@lists.postgresql.org; Mon, 02 Oct 2023 13:15:29 +0200 Message-ID: <78ff6888-006e-cdba-8d77-9d6b5678fab2@a-kretschmer.de> Date: Mon, 2 Oct 2023 13:15:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Operating of synchronous master when no standby is available Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am 02.10.23 um 10:54 schrieb Sergey Cherukhin: > Hello! > > I use Postgresql+Pacemaker+Corosync cluster with 2 Postgresql > instances in synchronous replication mode. When one of the nodes is > down, clients hang on INSERT operations because the primary server > waits until standby confirms that itĀ got the data, but the standby > node is down. > > I need clients to feel no difference when they operate with a fully > operational cluster or with a degraded cluster containing primary > nodeĀ alone. > > Is it possible to configure synchronous replication to operate > normally when primary and replica are online, but primary no waits > confirmation from replica if replica is not connected? yes, with 3 or more sync. standbys. Andreas -- Andreas Kretschmer Technical Account Manager (TAM) www.enterprisedb.com