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.98.2) (envelope-from ) id 1xEtLa-00000001KLL-43V0 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Oct 2026 19:00:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xEtLa-0000000DeW2-07pu for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Oct 2026 19:00:06 +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.98.2) (envelope-from ) id 1xEtLZ-0000000DeVt-346x for pgsql-hackers@lists.postgresql.org; Thu, 08 Oct 2026 19:00:05 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xEtLX-000000012Cm-3Fwj for pgsql-hackers@postgresql.org; Thu, 08 Oct 2026 19:00:04 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-48c4649b3aaso2275665f8f.2 for ; Thu, 08 Oct 2026 12:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791486002; x=1792090802; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=kiHDS8WZUV2iMkr0qjk9u3uraHvhftEn90btSimjYpg=; b=eKBsQJbabeqpOuOVCKQLkugEZ94JkiUVRreUN7yXMUSyAISmIFQgqaRc2ufMyQJUrp 9+hByMoevrKCxhINrEntz2aiYLkX0R9R4LarPLI07uDg+fzSwBORdR6ET3keHSLLvAzY H+dbbQcb3PNtKcb4RTOc/28heWL3IEMqK+TCKC1t/HmdZKWvSoFMBLXVgLME3LVBHDHt DJ/3uTjmoweTpTOwzgcIPDv+HODO5Lp+Gwr50/JvC0nSkbuvWhsopGxkrmaruGUza90i KrKxGK46DzT1FGJKvxhIQruyF3jlt18SXb07kD3oVHwO3C4tbVqCcOtp6DTENgX0bQ28 JZaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791486002; x=1792090802; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kiHDS8WZUV2iMkr0qjk9u3uraHvhftEn90btSimjYpg=; b=ug9zluHbpdZlgJ8ukDLLSXbyYKS5Rl24Hq7L0JZof8xHc6kLAq10hFjUwBMiGGXcki VtZ/osu5jRFJEfAUxVRfvXnh2FfiUYR6DhTyuKvGKi+b41t8vml2aigNphRTuuJIkakX mBsF86q6wvFYDWyPkypblBlYz3XnQ9FIHKDhAdZioJmsfEtkri4IyFyukXLeqSCanag8 ur1NeihS1uA8ZJadwKP28bJqJK19c5SzQTlMV1tCYHtwd9tEae+sif5ZnhyHxS32uHKW o2Y2gMGAkZI8uw6jOEgfzPA5uAPsv4YAIpFRDjE+UF8mOUwZBS7xW11GOEmkVcLkyrQO xSIg== X-Forwarded-Encrypted: i=1; AKwUvBwboqKDb1HA9P7212/sdgy3oFStBLty5dGnCIwO8/fxUZZi/SMILEop6tdEgwEgzcXEsqCz1GV9soNR8o4+@postgresql.org X-Gm-Message-State: AFq9FYLv/u/I+7Oopu49UGy6QFpf7O85jvYuGDsXhKYzNuNo4sMpo9Ig 2MJCcfiMMmzUTq2Vax3xb1QmaP1LHOwk3GlmTxdFlSbYitQD73e0vkHn X-Gm-Gg: AYBFou121fLNtJ7GaGmYi2iB5pySNG+dIkgR/IfwwLAv40/1rRla3iqf5nPZ9utj8th JN38yhza6wCwxz7P6LoFtoBPahjxMyaCZb8Im6n+xqSreDGn8NHB5sQMSAiNXmsPUdMY5ENolmv 8vitwM/MSDtsjGyDDII/SRJZ4HaUxKOWYStj2pAflOfCeUq/UE80X9HW5RbRtLzk1sF6BdImKkn BUWlt1w+2EsHmPSUScZ4NfX2xhwr0xKQv60vbd+5qRylZjdams0dXZt9KjYMr0+INT9NOiRLVGT E3+drnXiju8yIPgNsMZtb9oUq9KhiT1YaB9ZyrzhJSrQe2X/mdN0fW8Z2bD2QEW9SQNasOWMl8W np4sRqiyi0OO4v7zuzWy0cFEYIqsgKTnuFWfww6mMDJ1BoXrYW658PtK26XEJDM3YZiLKlREspf eFUeF8Wfhpmsrrj+KIcPrgT93GBKdXuGGSeZLBemO4O25w7FR0leDLTAACJuz2U5HlDAjwy4hPv xdT6Pxfbe6G X-Received: by 2002:a05:6000:290a:b0:48c:6b5a:e783 with SMTP id ffacd0b85a97d-48c72893bebmr13093414f8f.41.1791486002121; Thu, 08 Oct 2026 12:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.120.141]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48db650fd9asm1055206f8f.15.2026.10.08.12.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Oct 2026 12:00:01 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------0MDZkyR7A8n0k49yASpVGt3f" Message-ID: Date: Thu, 8 Oct 2026 22:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill To: Fujii Masao Cc: Michael Paquier , pgsql-hackers References: Content-Language: en-US From: Alexander Lakhin In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0MDZkyR7A8n0k49yASpVGt3f Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello Fujii-san, 07.10.2026 19:46, Fujii Masao wrote: > On Wed, Oct 7, 2026 at 1:00 PM Alexander Lakhin wrote: >> It looks like the same race condition was fixed in 022_crash_temp_files.pl >> by e37ad5fa4 two years before 041_checkpoint_at_promote.pl appeared: [2]. > I tried creating the patch based on that fix. How about the attached patch? Your patch works for me test-wise. The same test loop passed 100+ iterations successfully. Thank you for paying attention to this! Best regards, Alexander --------------0MDZkyR7A8n0k49yASpVGt3f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello Fujii-san,

07.10.2026 19:46, Fujii Masao wrote:
On Wed, Oct 7, 2026 at 1:00 PM Alexander Lakhin <exclusion@gmail.com> wrote:
It looks like the same race condition was fixed in 022_crash_temp_files.pl
by e37ad5fa4 two years before 041_checkpoint_at_promote.pl appeared: [2].
I tried creating the patch based on that fix. How about the attached patch?

Your patch works for me test-wise. The same test loop passed 100+
iterations successfully. Thank you for paying attention to this!

Best regards,
Alexander
--------------0MDZkyR7A8n0k49yASpVGt3f--