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 1w9xQn-001vPM-1t for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9xQm-00E3Ei-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:48:48 +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.96) (envelope-from ) id 1w9xQl-00E3Ea-2P for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:48:48 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9xQj-000000011UR-3aN7 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:48:47 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-38e0ef48ac0so8032521fa.3 for ; Mon, 06 Apr 2026 20:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775533725; cv=none; d=google.com; s=arc-20240605; b=Y6AlFrFsgC7NxRMOqkuwRXNxd1yEopV8De+hzK/rqZbqx2SwDzrAkMOMwyOXUI9OvT hIqcgYXOc7YT3IfKNsreVIWg/WPOuSjbo2FB72IucokbNDdBXRwsfYtik/s8+cgczFLh DwOE5eA7GQixy0J3lkonFuv9tOq8J2f+FAqaD3NP/itH34Ml5kLbB59HfZUn6gF+O866 SaQvrLZDEdsEiTdD/xwSswUdlodLHTTSbX8gWfQMG1XQAO8zdmHihnrNjVCoM71Q2XAj fblxvtwgtR9aJIgsX3yp3w6R60IdoMPUlMWYHfxeiPJRYqHatLEVPnNsJ3t3A44GGCe+ LPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7DFS4DW7CSDulDqqRE5eLYZbW+QtIdddJllhAn7J2Qc=; fh=gqCqNFmf9cY4c9f/IdKGpWO1DieSLiIhDMCjpntOayo=; b=dAsBJXdA3Y2BxfCOnCq+x0OladR3SqSO1Y7F9a78W9VN6dPO+F+ZChL5OGXj4EPSWx upYFHtTKiUXXaFS8H0K7kGP43nFT8FlT6lHTSt1OB+4vI+IeT6RVGFkPatYP5OOc1iZv x5KF4BrvQfn1lAhJh3pPXywVWid+C+f7Wv+JUJMkqku1BouqsUNgaYqP0N/QD8IFW/vP H9iFRhVFYydMNCg68jRNpA5px2g8AFkIqVHxVi7HnF5+fmkxaFjRcHqfhfzpkikWh3g3 tt62bS9eNzaaFejjeMUlfoTymLr0+p8LoQYBIo3eIM30EBRR1ZEOhb+gfVQpz7XcyZA0 nK8A==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775533725; x=1776138525; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7DFS4DW7CSDulDqqRE5eLYZbW+QtIdddJllhAn7J2Qc=; b=X6x6lM04eVpRjZL4Qh68OmyhWfH/xbXsOYWZCm5P8ar5U+egFH1fZlXk7Oj0mLghSt yq9X41dG5Wn75eXHGLS1F9q+LJuaFrYOFYIPGe7oJwxU+wyvhKOuefv/Qq0D5aPJHprM 5Qz8yCgigLrWgi7CSfkCeyIvGjfBNySLry6vJV7v3UNPFtMjp4MLxfCwJsQpmSKagEO9 ZOYpXBlU6+Y1KXC4qRsmSp97HsXDIp/htnu8ZQ9aQUqF8dGfHJ9nv73I31EhPEZuQ9Uj eSUrYNddn+OB3rEMhBmWXNXaWwZ9BT7Yst+xJnNTFIJx1N++QbIghz1o1Bp8/ZhmiPSU 6oZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775533725; x=1776138525; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7DFS4DW7CSDulDqqRE5eLYZbW+QtIdddJllhAn7J2Qc=; b=Cw1Hw77UEhp8LAI+HNYcrlLU8Hjp9bCSIcUsGCwHEqGVZ3sBLE/43bU0ElNXOIu05I K6GX9mSEMzDXxPSJ13kdQu3A4RqFsDA7UnHGi3u4Os4gU07RaXUOMTmSVICaCOagOdkX d17khBF0/E94Xt4l2mET2iYC9w2GFZK7JE0zCdzp2xPOmAvSyYt+5+LPx7Su4zS0BigX gpiJtkIaeL7IOBp+9zCxL4SEsDIYvw8bI/ZZqzEXU/VvdJDaygtsGjQEcuXI+NH8D3Q3 vPD870tsEjoglYk8UTbeN7zjG9qOhzHph18eqpSxufSGNIwQd/AQ5fnlqRed8QR6VcYp 09OQ== X-Forwarded-Encrypted: i=1; AJvYcCUvjSYIguKIIW3mXYb/JNlltyEu5eo9ejd3fsEP3eMqS0ot3SKh74GPhnT6BNEjVZx61uMoYeTEKX5oJO9h@lists.postgresql.org X-Gm-Message-State: AOJu0YyZOpGKc0eBs+vkV59AsmRsrmPuXPp5ew0OfjPIecsn0G8ir0Yk UjMFvSXdtocsKcIZKAIASwaxI49F85Y8sv3/lBbpdNBHhkx8Dit4vuT0Rj0Hi9rWeq0sPkvPjEE PtGRdDi/Z8gK3HcHE16iswheAcU/+d7Q= X-Gm-Gg: AeBDieu6dFq8CfaEN1tTDG3lRqtuu8J7eQ84VUUmn4UeAipO3VgikaxsgO22yufac+K E0+y+nwpXJdLL24I7QfwxQSKKqjBvT9x6A/k0l6R6soOjpLcZnIXlEyjd//wEmo2gm88ND4ijk0 eaDi94xNvJvt7sNItyOCp914ue0xbA3h2Gq86h506xH5dSFbH6Xap3PLhU0+6TuhTbfr2TqffRg kzWxcq7uemakhM92PGlpkrlwa+Zonpk3fO50HcAEkcAR4q8U9EvfJk+g3nyyZGIaVYqPZqCP90N fkSj2+CWHxJkQlbIONv1Bkxp3v6mOsHmYs87zq8= X-Received: by 2002:a2e:a587:0:b0:38a:55b7:dfa8 with SMTP id 38308e7fff4ca-38d8d49d38emr53752931fa.13.1775533724577; Mon, 06 Apr 2026 20:48:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Tue, 7 Apr 2026 09:18:31 +0530 X-Gm-Features: AQROBzAeS-oH_Mis31rAC6cZxiJVyJfdwzP_Q7CGa3S7lD3EPjFeww3AeFRdLmE Message-ID: Subject: Re: Use SIGTERM instead of SIGUSR1 for slotsync worker to exit during promotion? To: Fujii Masao Cc: Nisha Moond , "Zhijie Hou (Fujitsu)" , shveta malik , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 2, 2026 at 6:46=E2=80=AFPM Fujii Masao = wrote: > > On Thu, Apr 2, 2026 at 3:34=E2=80=AFPM Amit Kapila wrote: > > > > I feel the use of API before this version was mainly for test-cases as > > it was not production ready. So, it is less helpful to backpatch > > 1362bc33e02, if we want, we can backpatch only the worker part of the > > fix. OTOH, as the issue is not frequent and we have some workaround > > (at least for more common platforms) as well, we can consider not > > backpatching it. > > I see your point. OTOH, on second thought, if backpatching commit 1362bc3= 3e02 > along with this patch to v17 and v18 *is harmless*, I'd prefer to do so. > As such I don't see a problem backpatching commit 1362bc33e02 as it appears to be a localised change. > Keeping > the slotsync shutdown code more consistent across versions would make fut= ure > backpatching easier, and selectively backpatching only parts of the shutd= own > logic would be more complicated and error-prone. > I agree with this line of reasoning here or in general as well but personally I am a bit hesitant to back patch changes which are not mandatory. In this particular case, I don't see any problem with backpatching the part of code you want to backpatch, so I leave it to your judgement. --=20 With Regards, Amit Kapila.