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 1wbluZ-002paq-2j for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 21:10:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbluY-008AZJ-2Q for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 21:10:30 +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 1wbluY-008AYq-0h for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 21:10:30 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbluW-00000001e01-0Sb7 for pgsql-hackers@postgresql.org; Mon, 22 Jun 2026 21:10:28 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7e951b9524fso1282906a34.0 for ; Mon, 22 Jun 2026 14:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20251104.gappssmtp.com; s=20251104; t=1782162627; x=1782767427; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=dD/okND/LxjEg8e7kMhWSRacB3M/j/x85WT2pvVulS8=; b=WDi0aQiNIc+lwmoG7Wk3TBWln2bsxqcIagIQJYDepd1tx3S5MrZW7dy7bzy/p8X8Ox Bajs3tt2jnnoY07ZdMfsyurRXKP9StCxG5i/dqiiSsSglDJaNNpT676Lesgg9613dDsa STp0r/HMRZQ60LHB1SQtE76KK+I7eEkvwjg1umWm6jXC+V0eNMZb6jfh7e/UKQl2grOI ILueM8OymvW6n9/5FMzF4gYcDngi6idc2yMMzA3JqFzosPa+6xh/2G7KtVwe4FaZsfas 6MG8eci2HgWO4DUl8p4m//nxGjdLh7MyzbtkQMTzzAGWdMu0Y8VUtFA68UFpFU4y5lfk qEeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782162627; x=1782767427; h=mime-version:user-agent:content-transfer-encoding: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; bh=dD/okND/LxjEg8e7kMhWSRacB3M/j/x85WT2pvVulS8=; b=BTjaY6pufOJalS273aTYoUyVNE9pNTHrE7wFl4ZWwmUI98ZoL3VrmiBVO3eMpP/CKD Ajh1vnaW9tsqE5QaJq88j6Pii+SCEz4B6AcC7nfu9ywuJdhM6b3iyJOiIAEdjrShE5GI tuTBo1kwS9EZ6DozV6vimuX0yZB1jaylzSBx6J8A6i8NwzxJbr4lD2wLNYqVk2rcmsBE 5qAoRpzhenb4eHFnHtvlC1r55DoeP2gMKVws7kjb2RomXF/PKqNasIX5BFNc1FVxfwYk 9hkPFHp38WcXAQKdan8cc4CO/79lD0RsaEsrZmwUE5e4Km6OD8HyJuuEcKWPk8SxalYv DsTg== X-Forwarded-Encrypted: i=1; AFNElJ9aLOOFIH1aOfrGkaUOyQvf/Jqnqz3RsCECZimffdMviHOhuZ74o5+RwGR8EAT8MUtklmjET732E+8V06pK@postgresql.org X-Gm-Message-State: AOJu0Yxz8Nwt8vFovQpnYXYt+N93TOltVnZIi27dmhfIn1Czo+pe9j8x doziNTGOlJo0ss5Pl+kJPamTD6SPke+FVSts2lciIthXsgpcqgU9lHhEey+eFnb6cw== X-Gm-Gg: AfdE7clgbZPCLX2dT8ZQTc2KKZuJwEQD7wr96cL9yKIg1WUvgebtmSEQ9gY8da0vbWB btVjk4ChccEppTyLq9pEbD1usMJ8qP0R3bR89ivZPS4F4dWq/79LyDAg8sohdGG6zDghOOl2XOS Nm/ypPwHdLlj5+z/txXA1NXLRVA/wGwx+MiJuQo1gkNOs6aAAxkeZaFgfBUQL1lZAoIQ7vPB2HE s53CjRkgfrncdrhkshvEYlpt51OStQoMX0iTmchUZx+H9jLVoj7GVLDSPCLDTLXSf0V12E5DXdX Vz7xMm3rKGelux7ZYLMSJZNXx+/SRe4QNA6lQUofwGITcvzPIqWkh0JoF0I71Vp4JGXexwANf2+ yKNwywi4h5tJKMilyfo49OfoU4aP7SmawfSH7ctTduo3B9duAlUMBjB+EG5VCHkpn01UbWi5q/s rBbp6Lyc6jE/DW X-Received: by 2002:a05:6830:90a:b0:7e6:fab4:4f5f with SMTP id 46e09a7af769-7e92d976bb5mr14471887a34.15.1782162627136; Mon, 22 Jun 2026 14:10:27 -0700 (PDT) Received: from [10.10.244.130] ([50.175.226.11]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e944005ae8sm7826412a34.3.2026.06.22.14.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2026 14:10:26 -0700 (PDT) Message-ID: Subject: Re: Bug in ALTER SUBSCRIPTION ... SERVER / ... CONNECTION with broken old server From: Jeff Davis To: Amit Kapila , Chao Li Cc: Zsolt Parragi , "Hayato Kuroda (Fujitsu)" , Ajin Cherian , PostgreSQL-development Date: Mon, 22 Jun 2026 14:10:25 -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> 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 Fri, 2026-06-19 at 11:40 -0700, Jeff Davis wrote: > =C2=A0 * add an escape hatch for users to turn off tablesync slots so tha= t > DROP will always succeed It looks like SLOT_NAME=3DNONE is already supposed to be this escape hatch, even for tablesync slots. From the docs: "To proceed in this situation, first disable the subscription by executing ALTER SUBSCRIPTION ... DISABLE, and then disassociate it from the replication slot by executing ALTER SUBSCRIPTION ... SET (slot_name =3D NONE). After that, DROP SUBSCRIPTION will no longer attempt any actions on a remote host." https://www.postgresql.org/docs/devel/sql-dropsubscription.html But DropSubscription() only does the early-return if there are no tablesync slots. If there are tablesync slots, it still tries to contact the publisher, even if SLOT_NAME=3DNONE. > =C2=A0 * consider it an unimportant edge case and leave it the way it is > (with 0001 & 0002 already done), and close the open item I plan to close this open item, and treat the above as a pre-existing bug, which may require a backport. Regards, Jeff Davis