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 1uMKub-008n75-Au for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2025 06:14:13 +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 1uMKuY-00HDY1-UN for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2025 06:14:10 +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 1uMKuY-00HDWq-LJ for pgsql-bugs@lists.postgresql.org; Tue, 03 Jun 2025 06:14:10 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMKuW-0009yf-0K for pgsql-bugs@lists.postgresql.org; Tue, 03 Jun 2025 06:14:09 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 97F341380351; Tue, 3 Jun 2025 02:14:07 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Tue, 03 Jun 2025 02:14:07 -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=1748931247; x=1749017647; bh=wghCIFX+5n zVal14CZb6GsHAA09PEKhKL/wL56tIfBg=; b=GoEv1hqr44XTwv9SceEjzk75oZ guG2KYMgnj0XY+G3jZUeYWLMLaLW4aYCj7eefyCGCvQY0JBQ6jBByqAK38L3aiY0 pNMgHcQ6g+yL03E/4nkB9t6lqXWalXW9n2aSW75U+1ti1/62kDw/4KxWNLDUsxyA aifjmSbRsKsvJgMMOaCGKYAuVvp6ID0dqGIh1JwJjI3ZEqkERhewi63jfdLTttgM cBCIbA9RRlpQMxLCsu+mMB/+WdV9xnRW6YI9FuyWc66uW0iNpgfC6HhIz6t0TAYE ++eVpoL7ADdPMKpLX13L9l9kay3BiqfADC665dMhr/qw+VCd3nEI/lOYylTQ== 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= 1748931247; x=1749017647; bh=wghCIFX+5nzVal14CZb6GsHAA09PEKhKL/w L56tIfBg=; b=X6+lGNLcHmCOLcvu8HYfRZvI8wxGSg5punOFO0nyFB9M9MnSa9m JhczZ5lI1MKSdepjyhmpbMreLQPLQeb7/VRq3isKL2d9GkXHCTk1ApFQUwnecvYu PT9uA8lAeyysgbIBgMrvK7V5ewoCjboxKrwFrdgeMRyzYMjJb7pgfhEMkCG733FN j9TDPN3VynflHcFYX92fuy6JZcSBBGDroO5y1ibhHTamxKVOU+uagEiMeKir3X/5 BAs3KcCLcnMKPwS857GUwnoAhDrFCBl3PhWYfasOBUS5iN/+7k4nk/z9MmJfDTpl RT4DWI6SgCFgDNJ9A68xlppo0bW8njlSJow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdefleektdculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdt reertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvg hlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdt teelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghr rdighiiipdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopeguihhlihhpsggrlhgruhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtoheplhhutggr shhmrghrohhlrgeshhhothhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgsuh hgsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Jun 2025 02:14:06 -0400 (EDT) Date: Tue, 3 Jun 2025 15:13:59 +0900 From: Michael Paquier To: Dilip Kumar Cc: lucasmarola@hotmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18945: Standby synchronization problem Message-ID: References: <18945-2d88edf94ef23a74@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OKrnpESzEMZ3+Byu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --OKrnpESzEMZ3+Byu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 02, 2025 at 06:42:08PM +0530, Dilip Kumar wrote: > it's difficult to pinpoint the exact problem with the information > provided. However, a common scenario involves read-only queries on a > standby database conflicting with the WAL apply process. And as a > result of restarting the application it will terminate all the backend > so you are not facing issues of conflict any more. You can check the > value of 'max_standby_streaming_delay' as this will control how long > the WAL apply process should wait in case of a conflict with the > snapshot of the local queries. Indeed, there could be a lot going on. A sequence of commands to pinpoint an issue, with a precise description of what has been done, would help. Their may be some tools you are using, that help in the reproducibility. If you are seeing a process being stuck, attaching gdb to the process that matters, be it a WAL sender or the startup process, or something else, can also provide useful hints that could help in determining if you have hit an actual bug or not. Log contents could provide useful hints, just be sure to trim any sensitive contents they may include before posting or attaching anything here. Three lines to describe your problem is not enough for one to potentially understand what's going on in your system. > If you have steps to reproduce/or more > details on the exact scenario, then that would be helpful. Right. -- Michael --OKrnpESzEMZ3+Byu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmg+kqcACgkQnvQgOdby QH1LcA//ZgEwOdfR/ckcARqA+0VIUx7wtFYuZfJp43UaUAtCB//N7o9cYrES9K18 NDqpTn1OTd1mwOBkSvs8Rp8w00BvnCWBCA10APl9kE9tFAfpSXooqTHxCXj477PQ ftxDeMC2GY04YOp+YOZW+nsR9mANbfmk0gntfOBMeYOkrVJvTgslWO/L3h/Zow6D M3l+U0PtbU60WPf9HpX3RVGrCu1/pL9TzVGHOMVDMdxKIFgsjFqtKM5EfkUmVYx+ 89vto4ha2WKyJXp2vMKVE1gsE7AaBdDf/k5WHeGVjqhLY32Ynj5mNv4JfLIdFBmm cPwfQsEKaYyC83HQdIGeqUyL9/yNfjbl3988uGTA1L+JL/+TArvgy2qDc0YCB+3y RCKhstnAF0i5MtXaJ8urzuL9yA3GcJYVbqtI6ku2moH9wMCbBYakgd+DmEW4uJPu VsgwamX7pmpf4g6lSV3qUA+zDxzl6ofm5Io5SmvwIbpf4dnkULDYAQVhXF+Od44F 24h/bqsjF+z2zMenftYtBzNcVJZmqPjv7kdy4ZGaaGqkOwUAc31q5Tm3TvuQVfSy fFO5SD7RbcJtcRhfCU5ls+cUbdtmLZigg/8x0O+9Y8LtLdtHQhNIxWdcDuujXdox V7kuHM6KVsHZt0G1J2Arbxqevurf24PfawWEtLoSRo9NwY6llWU= =+XY7 -----END PGP SIGNATURE----- --OKrnpESzEMZ3+Byu--