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 1uQoqB-000kGP-QM for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Jun 2025 15:00:11 +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 1uQoq7-00D3TP-KA for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Jun 2025 15:00:08 +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 1uQoq7-00D3TH-8Y for pgsql-hackers@lists.postgresql.org; Sun, 15 Jun 2025 15:00:07 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uQoq6-0028Y4-0N for pgsql-hackers@postgresql.org; Sun, 15 Jun 2025 15:00:07 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3a53ee6fcd5so2265669f8f.1 for ; Sun, 15 Jun 2025 08:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749999603; x=1750604403; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=IY0CLblWTs3bN7QkqtrG7lPkdhPwvULo8fH5iRJmu6A=; b=TcTKSq04hVo3LuJRS1qFCuIy9CEXaUIrYn+480xeGgD+DkhAZ4zAwx4++tLW2CI8Mt HqxbfG2B3Ksr2LTXk8h0OlbmWieAwsCm3iPbso/UYeCg/Z0HQhbI/Ddv8qyFrsLSA60O U1LoVLqT+OKIY0pdjBHbjLlsFPlwRu2WeiHpFmdv0gx8d9qcm5VSOhQXjLJobjhsBome zR4TK0DphKGiLHNAawZGQSs+AsjcQno+N0TywIpmIluGYbcnzJFMiFwTkMTj1Kf7Ksaw ZrZ2892vWkgDdzhKsHm3zlWQyKk/w39+YbSPJ3ezZK2iArmweKS1377nITNg0+JqssBD 9J/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749999603; x=1750604403; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=IY0CLblWTs3bN7QkqtrG7lPkdhPwvULo8fH5iRJmu6A=; b=pSVZgS4j3L+YxCms16xRF5A8ww78jKGc+Tf9LBMKBdATQ4e1ZxFflhwUmULbY0rHkH m+cyxYAe5tR5zYogxZS+31sohCs3CUFvKQAXU2CDPzWKjsDttD2Ac6RWozSEURevK2Zh XJsJZ9fQSOyxz2RI4J8C0g+e0Sv78YOMkRlN4Ptoq0tTNPAJkfpn77KhzkQnGF3gYpRN igaBGGo+RH/Y7hbm6TWaUvkBHNkYAUg9XgRi6vSB5/GL8ymwMToPTqOYDa2p9J4m446/ 12WCbH7xjwrnHr2uQqYGfgkkAsTC+C5kPdmn3TAtPbc7XotpNWeHu07JJMagt8x09lOE Ym2A== X-Forwarded-Encrypted: i=1; AJvYcCWy4xqK8CL4d9xzN2EX92Qnvi6tg5WTNyoFW44bmnyJxTEMsKN+pVrw2vFAGVz6hUwxBZe9eorFCYQbJSgs@postgresql.org X-Gm-Message-State: AOJu0YyQ/HumhG2oMLeC4yPeqFMNeuCY2AyijUXVmnAYWRySM7KbBdul ScHIIoyBWn+M6cLWDJRxRn/YrQ/upMvWIxFRvdr1IwluRVHU5agHDpCj X-Gm-Gg: ASbGncvlO4sSOqcix8yLbURgA8Md1ZkT2Bck8xKjWC/WVAsJiZyrt5jF24YAcOWTDsT Phl6vsDqYcX/Tv+zhGhtBYJK9XGnckLyqQ0eyHyhgoN/qQVHrd0uxI/DmsTLkM4Zb45SsZKoV5M euc8oLogq1KnNbzWmWnWOlqqBuOa/k0QzKHHVWao7e0Dxq3rBxT9HjkzPIKpJot3dmeNzAXGs/D 38YCgFcvQOQXUjv8tamIQFzcj0Qz1xWGfsKCmqEB7ltkymI74ZYi+hiW59AukIzFbXK8aFRmwbN 1tK5h8J5xWbiA9lgL4o04uLwzKFnAR9GcT8GL3UG33Gy6SGsDl9A1pmAgf3mgxV8ptc+WFjvWPR W X-Google-Smtp-Source: AGHT+IG7mvx+SSj0WlVHP1QoD4Cms7578tSWP6Xk9K0SZYGilC5xgBlNAMormyxdd/YMVyDnc9HHcA== X-Received: by 2002:a05:6000:220e:b0:3a5:3b40:6e8f with SMTP id ffacd0b85a97d-3a572399124mr4792651f8f.1.1749999602736; Sun, 15 Jun 2025 08:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.120.224]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a568b7741bsm8078512f8f.98.2025.06.15.08.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Jun 2025 08:00:02 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------u0PuCafMjfjF03rASxGZfHSZ" Message-ID: <0a617d34-abc3-4090-92a5-ea15d45e36f6@gmail.com> Date: Sun, 15 Jun 2025 18:00:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Slot's restart_lsn may point to removed WAL segment after hard restart unexpectedly To: Alexander Korotkov Cc: Vitaly Davydov , Amit Kapila , pgsql-hackers , Masahiko Sawada , tomas@vondra.me References: <1d12d2-67235980-35-19a406a0@63439497> <1d97ec-6841b600-3-b7b4780@40747246> <28c8bf-68470780-3-51b29480@89454035> 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. --------------u0PuCafMjfjF03rASxGZfHSZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 15.06.2025 14:02, Alexander Korotkov wrote: > Could you, please, check this patch? On my system it makes 046 and > 047 execute in 140 secs with -O0 and -DRELCACHE_FORCE_RELEASE > -DCATCACHE_FORCE_RELEASE. Thank you for the patch! It decreases the test's duration significantly: # +++ tap check in src/test/recovery +++ t/046_checkpoint_logical_slot.pl .. ok All tests successful. Files=1, Tests=1, 29 wallclock secs ( 0.01 usr  0.00 sys +  0.23 cusr  0.56 csys =  0.80 CPU) Without the patch: t/046_checkpoint_logical_slot.pl .. ok All tests successful. Files=1, Tests=1, 519 wallclock secs ( 0.01 usr  0.00 sys +  3.05 cusr  7.64 csys = 10.70 CPU) Result: PASS Best regards, Alexander --------------u0PuCafMjfjF03rASxGZfHSZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
15.06.2025 14:02, Alexander Korotkov wrote:
Could you, please, check this patch?  On my system it makes 046 and
047 execute in 140 secs with -O0 and -DRELCACHE_FORCE_RELEASE
-DCATCACHE_FORCE_RELEASE.

Thank you for the patch!

It decreases the test's duration significantly:
# +++ tap check in src/test/recovery +++
t/046_checkpoint_logical_slot.pl .. ok
All tests successful.
Files=1, Tests=1, 29 wallclock secs ( 0.01 usr  0.00 sys +  0.23 cusr  0.56 csys =  0.80 CPU)

Without the patch:
t/046_checkpoint_logical_slot.pl .. ok
All tests successful.
Files=1, Tests=1, 519 wallclock secs ( 0.01 usr  0.00 sys +  3.05 cusr  7.64 csys = 10.70 CPU)
Result: PASS

Best regards,
Alexander
--------------u0PuCafMjfjF03rASxGZfHSZ--