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 1whXpD-000I1S-0n for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 19:20:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whXpB-00924s-2a for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 19:20:50 +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 1whXpB-00924k-1P for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 19:20:50 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1whXp9-00000000CgQ-3Kcs for pgsql-hackers@postgresql.org; Wed, 08 Jul 2026 19:20:49 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7eb68bdf53aso422248a34.3 for ; Wed, 08 Jul 2026 12:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20251104.gappssmtp.com; s=20251104; t=1783538447; x=1784143247; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=G1PW/nSha8nVFg/LAzailfwR/kRuGZzj/IvX6NbNnDg=; b=ZLB9iBXcgoDKhzrjzHWZ2/GCg3Z62D4M+u2M/1rSLvQ6ohnujCveiTdCa3y5ubYsA/ zDyaxtd1Snm1EU6gCTZt5YQtuvn52v7fHYU7sZXqt1fPxdaCE9BX06QaqrbxFa+/DNlY Qq4FLbXu/aolRhAb2zM/rnAxfphJPTjmk77Svf5+/OnqYKM+i0fmsoprrwOcrDbnSeRv OOszstAn6JhlA0QNOVm1/zqxHRmTb9dh7Nk7Ocdevbb3vyGN/AHoqHd9I37rp3bQBMkE JTdddtUm1fCwSlo02jo3dFzSXRiVe5WeLpVOzBGEAEGVBfzs4IRVHE9ymYRPccbzfoX4 dB4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783538447; x=1784143247; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=G1PW/nSha8nVFg/LAzailfwR/kRuGZzj/IvX6NbNnDg=; b=o4CxJusAkzq2XV4WwUhK2U2jroOvVcNRpMLJpSFLk2uFj7GnUo/K/4Dbzvmegn51fB 7tvPSX+8upBTebbWbTZWIIL8dAyJP+wj3IGitq0o1lbhK5MpIR4YeK4sj3g8NlIyLfsd 1top9+a5EtYKVyNTKeGBEWfVC6hOWgEIEx6gEDj2B0aZXwMBdswiYle8wl3FPmgGTM0h NyW6tKVDYbIxBQrb8PiKfX/w/E9qspVvMvafi3FeIUnbkOpKLjR/3g2zUgTslzEnb9iG blLkkUS/gOsLWpLvjFmee+iVENQJFBCd8/qt9EZ5ITIFsPxO50AGRXSCUmvDIQoCzPJY g0/Q== X-Forwarded-Encrypted: i=1; AFNElJ9bVn81qwOs/xvGOeo6CNHhFTeEpc12yOrJAd4hBRsYY3n40BbgaUNu/EsHsRDnupS/gEEWE4OHvjeDh1tR@postgresql.org X-Gm-Message-State: AOJu0YzA4sy7zgPJfbXb18tmuH64So8AwRx5xoHILvXaI0UeZRP5L11g PlLdPPZxff22gOAep4IWK6WJncnfhsDfachIkM3RkT1XTlBNcGF2sS6GMBSlPYeCBQ== X-Gm-Gg: AfdE7ckOemWVBCeJX/0ZbeIAgtA04orSrI8dYvAW/v2UPzYyXGAekoiuv1TUHCWfyGO 2pnx0Rxr3rhDRMQoVyMORcZrKXwsTYx/+tBaMckCEZMvnFbgm5JlDoUHuiXimisGPqsfKUMCYeG +qGgLQaBx/VAcFyXit9x6NgYQGfEpKLg6fW+E2VU92GI4ESk/QO4wF1U/H8FsbccTVnAVVm4FR1 PbcqMRe/EA9SL5QIRgfxQFppS/SpfjqvWSJ2qMIMwkjQZ9DlPFEczzoB2fE/kCjBZQGlKMoTbCd h+BDbxDgC/mB5AmiqetYN79rFZvTuvy70IZKEHHlnwUICSllu8I7Jae5VYfYgnSoueXXO+XxGGr nZXkEoo7tYp3I5T38FrIajSzdDOhRrymj7mr0nnJ8f56Wah+xYDGLTlu1r1HyeaVApFkFgEH3bX xkFm1e8QO99eM2 X-Received: by 2002:a05:6820:1689:b0:6a1:4507:3539 with SMTP id 006d021491bc7-6a36d9f0504mr2594354eaf.47.1783538447350; Wed, 08 Jul 2026 12:20:47 -0700 (PDT) Received: from [10.10.244.150] ([12.63.242.123]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-44cfb559559sm17692055fac.9.2026.07.08.12.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 12:20:46 -0700 (PDT) Message-ID: <2ff2a391adc2e86d82803a5f729f42f13448faa1.camel@j-davis.com> Subject: Re: Bug in ALTER SUBSCRIPTION ... SERVER / ... CONNECTION with broken old server From: Jeff Davis To: Amit Kapila Cc: "Hayato Kuroda (Fujitsu)" , Chao Li , Zsolt Parragi , Ajin Cherian , PostgreSQL-development Date: Wed, 08 Jul 2026 12:20:45 -0700 In-Reply-To: References: <960DD2C4-A22C-463A-90ED-86E0FABD8D20@gmail.com> <8B38AFCA-7FFA-44CF-B9A8-81BDCEAFB224@gmail.com> <705148C3-519C-45E7-9EA8-48D9F3B79B06@gmail.com> <1B3A7FF0-3292-484F-992C-27D172772EB8@gmail.com> <65166eb6feb87356f8d60bfe646289ce15a6c729.camel@j-davis.com> <24C6472D-DCAB-4F69-AE8A-FFB4AAB3F6F0@gmail.com> <5c629d2455946ad2fde3c184f64ea2c323ef2133.camel@j-davis.com> <131c80088565c68e64c02572a800316c6bbb379f.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1.1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2026-07-08 at 10:29 +0530, Amit Kapila wrote: > Okay, I see your point and we can make it return early when slot_name > is NONE. However, do we need to consider a case where users want to > manually manage the subscription's main slot, so it uses > slot_name=3DNONE? I mean users want to manually maintain the lifecycle > of the slot and due to that even during the CREATE SUBSCRIPTION, it > uses the specified slot_name instead of the default. But still > tablesync slots need to be removed in such a case as those are > internally created. The problem is that we are overloading slot_name=3DNONE, and as you point out, it can mean multiple things. Can we just have DROP SUBSCRIPTION ... FORCE or DROP SUBSCRIPTION ... NOCONNECT? That allows the user to clearly express their intent at the time of the drop, rather than guessing from the state of the subscription. If it's too late to do that for 19, we should probably just make the code match the documentation and don't try to connect if slot_name=3DNONE. In most ordinary cases that would not cause a problem, you'd have to have slot_name=3DNONE and also drop the subscription before the table syncs finish. Regards, Jeff Davis