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 1usrLY-00C1iO-IE for pgsql-docs@arkaria.postgresql.org; Sun, 31 Aug 2025 23:20:30 +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 1usrLW-003602-3n for pgsql-docs@arkaria.postgresql.org; Sun, 31 Aug 2025 23:20:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1usrLV-0035zt-Ev for pgsql-docs@lists.postgresql.org; Sun, 31 Aug 2025 23:20:26 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1usrLS-002tje-13 for pgsql-docs@lists.postgresql.org; Sun, 31 Aug 2025 23:20:25 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 857ED1400181; Sun, 31 Aug 2025 19:20:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sun, 31 Aug 2025 19:20:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1756682419; x=1756768819; bh=zRnGK+NKZh czAn4ILyOWyGeEgn2w3c1hxa/YaI2Qtfw=; b=H+v4oqjfogdPlNcRpe8iBUC//n IRe7hUxSbRpk7iv2IKKDos4nvv1od8QGmOkkvjXLlDDQWeRpP2NWg1NpsTjXCds1 JpSXr/BoGEdOMGZHzfbRAKb+CvJAHfht6LFzwhNVMUltXdXGqiovIOUpgDYOrtgZ jnJqzIY3VxjpL3YUg/sPNN5Ymjsal8S8KXakJJk4EAw2av0+7SF972amMnonor9+ DX+LP77Q+H+1JUVl0x0AuNgFv6+Ws8uIQhFXqbaiGdBPZtBi3QaYlP0Qol7XTjfp BdLjeqiIJigl+KkMcGVYAlkzUTlwuwjd2nyWQwRJVWsVyAY62Twz/W2JSewA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1756682419; x=1756768819; bh=zRnGK+NKZhczAn4ILyOWyGeEgn2w3c1hxa/ YaI2Qtfw=; b=DExsH7ceG0qQSjPyup9fNsL+f24lSGZgbI80JUBligBBjWWlpFo TmvSUFEpdvIwOqzCHHR4UjBwFSeU7kQEgGcRLMdvZMbIdqUF/uAJmLcfS7j/nqLV eO9kkc2aBBcMzVq+n6xutqnK1+EV1HvPM05av2XPLzc9qLtHcIYbXlBYarCIeQal xPwOaqb7r+EaJ+B3YXdhkeq6nKe91ciq0pKqeR1kTKYYMbjxdw3+fCL/sVljtaqz Dv40xqrEH5+Ew/BWEDzgjV+ZD6+kmB5Fg2tZZ7/aB8+cmHQr4B1B2v7MZVus0F10 VdQLACZvp+XWDIi/HgUR97jWjQr96JP+QNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduledtheejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhgruh hrvghniidrrghlsggvsegthigsvghrthgvtgdrrghtpdhrtghpthhtoheprghrthgvmhdr ghgrvhhrihhlohhvsehpvghrtghonhgrrdgtohhmpdhrtghpthhtohepphhgshhqlhdqug hotghssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Aug 2025 19:20:17 -0400 (EDT) Date: Mon, 1 Sep 2025 08:20:04 +0900 From: Michael Paquier To: Laurenz Albe Cc: artem.gavrilov@percona.com, pgsql-docs@lists.postgresql.org Subject: Re: Inaccurate statement about log shipping replication mode Message-ID: References: <175578964049.806.14564779365418625473@wrigleys.postgresql.org> <568ff8638e011b2726d06a4b95124ec51ee1e5af.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WxYBUBNMGlaib6ZC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WxYBUBNMGlaib6ZC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 27, 2025 at 02:13:21PM +0200, Laurenz Albe wrote: > Here is a patch for that. > --- a/doc/src/sgml/high-availability.sgml > +++ b/doc/src/sgml/high-availability.sgml > @@ -527,8 +527,8 @@ protocol to make nodes agree on a serializable transa= ctional order. > > =20 > > - It should be noted that log shipping is asynchronous, i.e., the WAL > - records are shipped after transaction commit. As a result, there is a > + It should be noted that log shipping is asynchronous, i.e., the prima= ry server does > + not wait until the standby receives the data. As a result, there is a > window for data loss should the primary server suffer a catastrophic > failure; transactions not yet shipped will be lost. The size of the > data loss window in file-based log shipping can be limited by use of = the Yep, the original statement is rather inexact. Now, your new wording does not make me really comfortable with the case of cascading stanbys in scope, because the asynchronous property applies to them all the time. Hmm. I'd suggest to use a simpler reformulatione, like this one to outline that there is no relationship between the timing of a transaction commit and the timing where the commit records are flushed on a standby server: It should be noted that log shipping is asynchronous, i.e., the WAL records may be shipped after transaction commit. -- Michael --WxYBUBNMGlaib6ZC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmi02KQACgkQnvQgOdby QH2j2hAAgjqmGSdG3LQyU3pPeA1J8i5uyr3NVKQJqNN1jGbUkQwdqo1HVIJ+ssGU 0f/Z+q4dbbzl2H+87kmp93uJm3u3RLSH8kCh34VIbSWWSYJ2HaTGXpsr3HKWC4zx JvyJcEbY+aM6rOKpkhph4fqa+UP8plpnOMpKtQEryQeRHQ+JlOQFQ6U4JV+ZCxUA Yfv1aWHI/rLHkaapaDY0ur7j8LkfkRQHuv/TAGNzvAL05ykdVfeBsr5FwFH1Sx9y inOqpq7Jx5hAsNEXbm/1lnOIkDPR0pfyXe6vIfB1TwnGKY/7olXDDDivcIKUk58G PhtGQ3s0SiYQqKIxCiAWaWckSnY9d9Ze1fafNoAybcei/ovuqe6CzLSSRAGCsc33 xSdzPicCA26CD4E/+4Bh0+ebgPLYvzaG6Cav0VpUbYO2banRNqnkyKHNv0mDf+p/ CXQPGwdYzJGbTDuTqJCqZ61CO61Yu+gHjBSwEzAeS1ulUKzXwybsICMPWzG1c13/ zQepGCi4bzTmRpt1PKTqBzf1UTeVEQdOJQg1XBDcph9rLC7+nxAed8lnt5MuyYAP wszz0NDWjLoaJnZH6s0S8JSdf14g7SDE0XzW37EO5f3y0pFovyRTRi7aeXsZyQiR sWHEXEYEmw3AHlnEqiivyzI5hC+H4/LLHuMlznZDkB/oiMhFrkc= =faLG -----END PGP SIGNATURE----- --WxYBUBNMGlaib6ZC--