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 1wAIpn-002FdP-1W for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 02:40:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAIpk-004BkK-32 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 02:40:01 +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 1wAIpk-004BkB-26 for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 02:40:01 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAIpj-0000000190I-0B6E for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 02:40:00 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-7d7f09aa39fso6984633a34.0 for ; Tue, 07 Apr 2026 19:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775615998; cv=none; d=google.com; s=arc-20240605; b=MnRNpvZX8sEc6Xy6hqZAcw6j+SQ/eWFK02jdYXZJ4XlX582yNZBV7M1/KghPZKlTu5 29ifDosL+8c2oL7CHZ6xt4PfSwrt19qwyDXLqlyq+A1wtUvt7iCA8fGiiIkDqM2+HdvH V+DO3yICDLVcXaMZDqeKgGl96UF+7lbt4YuWCHcQVbMBXr58SxeLSE5U2c6Ith7IAJ2x ZoX4BIp0NGJtwO+2FNg0FUl6qGOv5Dx8GmFYEkV14V3PojGLVs8stE81QAfSvmbtQopq +SVi9rYh/fen5VikZlgNKLAxckmx3+gDtttwOgY/H2ExSswVeKhrlY4mwbuWQT/QW1xx uYig== 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=CAGpxjuZ36n7+iyRH2a7vZB2FoJjyJfXuO+rnm62MZI=; fh=Y7uRVg9E2umBizkA8ZtazYwKTlkHZVEYJ3ZlNj/HMDY=; b=GZGJUXAtbVV4Hrst5YIDFchS36SGEdWhuDztZVwuPe6XvKTYuDz0C2KN5d4cdXNU3z tY9SHuv8eMC6MxqaWCEcZoIu7EU75S5kbmyk3NrI5be2NgNKuLY7QGe8JkU5U0mFGZo+ zcOvjcamJjEFufMwNLXwIpV+e8KlHLHYJAZWTs9EBLy5YDgrOayUssF7Nv9TQ2sDCgOu VB5ZfqkmweZjWCVyyhS+xjdJ2dMl6rZCVpcZvlLqq7pxMzwzBf6rw+jBWBoUYaffUCuP A42Ab0eADP5CQfJZ0LO7oBjc8wLtC2zENNEWbNg+MO7irJf/mGgJ4TFrefac3aJ51uDz ngSw==; 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=1775615998; x=1776220798; 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=CAGpxjuZ36n7+iyRH2a7vZB2FoJjyJfXuO+rnm62MZI=; b=QqbxrP8SB6Il1S298XbZtoXpfTs+JLtckIxvNfIIYtIDC/ktLP9TfOVtr8JRKKPBOH QJnYHWvonhmZ/jNLQHCJPdub7+CaU/Eb5nRoXElZM/xmImnzRhX/+rNF4ebkUPsacinW hK1INDvZXqIj2s94yA+xCWBjtZGwcGYE5U/oMZopCQRRtO096fsDouUwlgamNNtAGxwl uJknD2z1SWzyGydIc47FxoA890ogtSvcd55M9eCJe0jBF9rFgl4hht9MhjqTOsh5Lp0h VHmJuB9+yU5AOYYYkAYqvcw7nRHNeeVeGwaf9a9lCg6Ob2eDGspQA9BelS6flbDGdLSm +t2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775615998; x=1776220798; 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=CAGpxjuZ36n7+iyRH2a7vZB2FoJjyJfXuO+rnm62MZI=; b=VqqXCvuV9GXNjw/uychUhPbw07yqRXecDkIwK7L+JjTMquGMhzAE4oWHXizQw1EGdE hUP7UnjvFjqi1nnibbcAKS8n3c+Pej3l4hXFld94tWt+qKbBPY6hjqUWQ6LYE4TZtOjG nsAD3MCKE4XojtBDePbpYSKZNd5AKpJPHncGCwsC/ZPSfHvhOhTt4IQU92bus/EA8R5z dCeTKx9S+8xqqciHAHYcPXMVNzCHa0BxNlxh4mtOvyAfAPi5WsRH7PqRFfq3nMLwzizZ S+DoR2m1DyE9omx5KXBuONkaaqRSIrZVXbHQmL7PhWQ2Jg+ey2BWHG6UvyAB4Y2KexSi aqgg== X-Forwarded-Encrypted: i=1; AJvYcCVNftcxbgTpblGR5zqcdE0X0kVg5Ztau5uOzxYp9s3yyYaRD6pqI5Vxq1C0KGw6caXlWK5ULpJx32B4Hb7S@lists.postgresql.org X-Gm-Message-State: AOJu0YzhiBsrn/SMZlz3LU5k1EgUIruP/fClRM3PA/TzQ9Eqbn2SG5U3 73UeYAbzKtyIJIkMpMwuO9GEBXrT5bdbfqMGS4FfEidAbhC6NQcagfoS5qDwTCHDfRAA1+0UwiW QjFj6aTCVhH5amh+0zcedAi7+rAJsm8tSgN1dg3A= X-Gm-Gg: AeBDieuWSZx7m+xtniay23ogJ097ZWgHVlHS0Jl23v3WiEVzCoW6bD62Z5xczQ9B+R8 PB73kTH5MaMbobNSKm3blR+QVUWCJfsciaRT3Pic5SZ31pZfYbPyF74CX0IqqykqqTIXBU28sec YKAf4KTMus1l94wYHoTAgJBl9UgxN15eWR8a1ZXhZq2j7A7OBoXMd6JdQitexgmkCIw7djhfCmX 36acpux5VICXlRJVLP20tXWyEbDZrCkx+h+S9uMyFhp4BLIOQBOapCvg3PgXoMbCJfBw7Kb4skk OeYZJCfdo1yQL1i3N9GtgululPWvU8sJBnIomLw0VQ== X-Received: by 2002:a05:6820:80a:b0:686:2239:4b90 with SMTP id 006d021491bc7-68622395277mr5280168eaf.64.1775615998351; Tue, 07 Apr 2026 19:39:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Wed, 8 Apr 2026 11:39:43 +0900 X-Gm-Features: AQROBzAZgv9QVXBNhah-8q3fIYmlBKZ4BwGyS6BX5CS0G_OrVpnvE_T8s9dj0yY Message-ID: Subject: Re: Use SIGTERM instead of SIGUSR1 for slotsync worker to exit during promotion? To: Amit Kapila 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 Tue, Apr 7, 2026 at 12:48=E2=80=AFPM Amit Kapila wrote: > 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. Thanks for the comment! I decided to backpatch commit 1362bc33e02. Although pg_sync_replication_slo= ts() lacks retry logic in v17 and v18 and is therefore less likely to block promotion, the issue still exists in those versions. Given that, it seemed worthwhile to backpatch the change and fix cases wher= e both the slotsync worker and pg_sync_replication_slots() can block promotio= n when stuck in a wait. I've pushed and backpatched the patch. Thanks! Regards, --=20 Fujii Masao