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.96) (envelope-from ) id 1waCWt-001bOD-2r for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jun 2026 13:11:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waCWs-00BOMI-1U for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jun 2026 13:11:34 +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.96) (envelope-from ) id 1waCWs-00BOM9-05 for pgsql-hackers@lists.postgresql.org; Thu, 18 Jun 2026 13:11:34 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1waCWp-00000000yTW-3zl4 for pgsql-hackers@lists.postgresql.org; Thu, 18 Jun 2026 13:11:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1781788287; bh=Mlza3OCsJI0WwxTgM8/a7YO6sNATPmO4B7wyny1K2H0=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=6dDWEFZEPoSEh6hbyEn0s+drndUzKt4PbXfZIGwE2KtdUTzdSJ91/RqLXz2VaLF7w kG+cYfzqALhPCVRWUcvxY3Y/5xwrxRZNoLrAJRKWDRJ2EpPHdgpHGArEi4tDveSwT6 Mx6VWfALWxdR86DbUIrxb/a6JOOjI98xB27h503rpWx/6j3mEaTgXq+sB330fq91zL fN8nUNP+1q3IZat2R83aXK1hT5rewAFXKQ02xPdwBgcPPaUsMadxTVo6HY3UmdYJ/H 1qIuojDCF1ZJrMHADeM4D7kMxvN56MdyEGC5tnG0MMARiy5S65QlSdV+PudFPA9bfJ j7/W5Xip6O77w== Received: from [172.30.51.86] (debian11-template.l.postgrespro.ru [192.168.2.254]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: v.davydov@postgrespro.ru) by mail.postgrespro.ru (Postfix/465) with ESMTPSA id 89EFC608AA; Thu, 18 Jun 2026 16:11:27 +0300 (MSK) Message-ID: <279402b1-7f16-43fa-9dbf-df96a93245dd@postgrespro.ru> Date: Thu, 18 Jun 2026 16:11:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Deadlock detector fails to activate on a hot standby replica To: Fujii Masao Cc: pgsql-hackers@lists.postgresql.org References: <44c24dcf-5710-410f-b1b6-d10b315f3d51@postgrespro.ru> <25cba756-9459-4811-aeaf-4a8715735c82@postgrespro.ru> <12324a50-95d3-4de4-bd89-b295924b35bb@postgrespro.ru> Content-Language: en-US From: Vitaly Davydov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-KSMG-AntiPhishing: NotDetected X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 3.0.0.9059, bases: 2026/06/18 09:34:00 #28249875 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dear Fujii Masao, Thank you for the v5 patch. It looks good for me. > I still haven't come up with a good way to test this without depending on > log_startup_progress_interval being active during standby WAL replay. > Even so, I think the fix is still worth committing because it addresses > a real issue. So how about committing 0001 patch first, even without > a regression test? I have no objections to commit the v5 patch without the tap-test. Once, it is the bug fix, should we prepare the fix for other major branches? I'm ready to prepare the patches based on the v5 version. I looked at the tap test and found the reason why the test doesn't reproduce the issue. The function adjust_conf in Cluster.pm changes the existing parameter but doesn't add new new parameter to the configuration file if it is missed. It doesn't report any errors as well. If to use the append_conf method the test starts to reproduce the issue pretty stable, because the parameter is actually added to the configuration file. One more note - in my original test I set autovacuum = off for all nodes, but in modified 031 test autovacuum seems to be enabled. Disabling autovacuum may make the test more stable. With best regards, Vitaly