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.89) (envelope-from ) id 1hnYuD-0006gd-2q for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 01:38:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnYuA-00074I-GJ for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 01:38:50 +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 1hnYu8-0006wi-RD for pgsql-hackers@lists.postgresql.org; Wed, 17 Jul 2019 01:38:50 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hnYu1-0006Dd-Dj for pgsql-hackers@postgresql.org; Wed, 17 Jul 2019 01:38:47 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CAC0822402; Tue, 16 Jul 2019 21:38:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 16 Jul 2019 21:38:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=A7Wr2mjl4xumuEgmg4gEgAaHvUo Go2loIyhB4E9CmlI=; b=a5cS+munJYNZ1W+WIbmpzUIFt/23n9GpaygIP2iAcxP n4OJZ1Hp0neYHbPfSD3PHGRozatr+c6+hQSWwEz/3yEk5xX86HPPtUx48eaTcBZ/ I0xiHpmRTBG7KPR0r9+DGFgBvq9Fdl9RehLU/WvOXG4bN9olSeu1hVZIaI+nWPBe YWGSfmT65Srjpd89ZXTBwDJMDduHOEsM7+nCtbwce2yJDJTKZztAKs+5OCdCbEH3 u10MHzIUVOk1Bo329+n4mbzAtacezva+ThBhm783VZzIuCaXAQ12/+39Na0Vkcvg fAaeWt1c/SSjrOc64lEDqeH3P1lJ9YWAMC2pYvqzcBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; bh=A7Wr2m jl4xumuEgmg4gEgAaHvUoGo2loIyhB4E9CmlI=; b=VrjpPNITGDvAkK1SaKO32a muKhlMzI6OepJ/qVYXTgbMGAVrRPShLF22emuJRrWVEcQaF3DymBpSBg0ZqUEwVl VVKjMPgn+S8XilCPhkLq9mWBpw7PjjgFQn3eZrMV6pQ6dJa1B7CVEyVW2vVp/f5K jxr47K2a9SLmBHu0q1Rrq9n9+h4HGPUUdVNPTa4AX31UeXd4sInf0qTNjkqSwQNh tx2MrP9rBeT7KveA+i7PqRs0IqmoF/n9vdyipaiKfNHp3OxSQKBKtphQknoYBTMk Mqg8xA7AIgkHsAaw8kQPpIAqHcEwRm8q/6eZ/okObxuG0/pIiwRryJjyEil56FRg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedugdeglecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id BFF7780059; Tue, 16 Jul 2019 21:38:37 -0400 (EDT) Date: Wed, 17 Jul 2019 10:38:35 +0900 From: Michael Paquier To: Jesper Pedersen Cc: Laurenz Albe , Alvaro Herrera , PostgreSQL-development Subject: Re: pg_receivewal documentation Message-ID: <20190717013835.GA2130@paquier.xyz> References: <20190710142421.GA28387@alvherre.pgsql> <54779de5-f922-c0cf-629d-b582eded7265@redhat.com> <20190716050555.GA1439@paquier.xyz> <65c3ecdf-8995-34cb-83c4-50068877e632@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <65c3ecdf-8995-34cb-83c4-50068877e632@redhat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 16, 2019 at 01:03:12PM -0400, Jesper Pedersen wrote: > Here is the patch for that. + + Note that while WAL will be flushed with this setting, + pg_receivewal never applies it, so + must not be set to + remote_apply if pg_receivewal + is the only synchronous standby. Similarly, if + pg_receivewal is part of a quorum-based + set of synchronous standbys, it won't count towards the quorum if + is set to + remote_apply. + I think we should really document the caveat with priority-based sets of standbys as much as quorum-based sets. For example if a user sets synchronous_commit = remote_apply in postgresql.conf, and then sets s_s_names to '2(pg_receivewal, my_connected_standby)' to get a priority-based set, then you have the same problem, and pg_receivewal is not the only synchronous standby in this configuration. The patch does not cover that case properly. -- Michael --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0ufBoACgkQnvQgOdby QH3+bg//ao4GnV764caJ8t7HGcWuaE2TanCB2s0rIIf3oZ2ZDrahi1p+IKqCSkdd 1C+X/Xdc5FjPC/xfn1qStSHuht6dqdSHDy5ur5w6xBJPErssHy90qayqqqBsY+YS 6CJ70S7UIh0r0l5rC2R3ufcniCNyFJ+TeOAXAh03IZsSnWkprAvMWL0nnHu4nXtV aXY3e4kmfQcN3IdLg+enLrBjpfTRrIC50eebWnP3CBEKnGtBoNM7AgnvLPwETPDl XDD/64wALMQwaX3r2Zp96Mh0RerwuVoqy0XyRBiiTyL+VzwAJk/ThZssd1qu2ZFz Nd1ZErV6a08TYR00W2Sp3W2WHA4dj/gByXwAEfCyY4aqcBDYLI/I1iUoJEi3+pLC zkFr0DKVyZzKeDDhXT1WEkoeRxwFdL7iUGViGSWuF5LhY4UMl6gbOJrObKGzg4Cx FAUvf5PVwXuf0gFICtWE3KVO4EYDbi7025Cusv+IxbeJn/hG9zuE3VFMIUdigLcv vUxltS5KtBEx97O3NmjazwblvSsEMMbxcoSFIQkwC456AoacGyrVDfjLIpyLZQaZ 2yTgjLdUYMNoxUFbqJUuhLdt4pusnsVMky9PjjtjBtYenCKvw3iGA/JY6Vd4D7Hp RFLyVTyEUzfcxWC4z9xv5MbRl6fpMFjKFLX645gqRdBdvx8xfic= =4i+u -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--