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 1w7pIy-005jRe-1e for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 06:43:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7pIw-00FKUk-2S for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 06:43:55 +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 1w7pIw-00FKUc-1X for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 06:43:54 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7pIt-00000002JCH-3IR6 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 06:43:54 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-82cef263bedso127438b3a.0 for ; Tue, 31 Mar 2026 23:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775025830; x=1775630630; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hwbk2P3IYMFmp8DZql52wfurDkmW6xtX1rN3aB0F0OI=; b=NNFqZ05hluOjwACGIHkPo2lAwstKw7A/A8Yhdka5RUqWMF1NX4ON/NWZbVREZ9JmeA UhXbVNlUMzVbHRIBB2JEqdT6rIqt1Clwa7egL6C67KPzP4bsBj9eiohJ8Lm6bUlbZ8Iw Pv27HrJxcX3Gf/h/cpgLP7Np0LJp+wcWiSxsCGD3tsWtPHMZY/z5/nGuFV1RLxvL60s6 H5STPa7zmbBVpOwV2y1Y94alL85GHYTPO+1HaEnL/GlYAv7WV+RFvjyT7AcP+A0wogzB buckaO66W0WcD5J9DwiV23jgnV0r9jRp4Ze0/oZrXvzDCPS+SQ4s2WfiMHMqxeHKwkpf pWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775025830; x=1775630630; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hwbk2P3IYMFmp8DZql52wfurDkmW6xtX1rN3aB0F0OI=; b=QKYRQn5ICa/fKAz4iR23vGAnk0pnpgeq6FNPAOp+etYykUDB+hVR9BpTQZ0Nu2KQQ6 yX9PwZ1JF/te0wlP6xTAb8ZJDOWB75HTcww0ILHJ6wWcFwQ2cVw1ZynVKkfMlp793Wl3 nmBWb+JYz5J5Jbn/wgfN+qkXWNktl4KiJLnO5GfbySiJmgD+507fyWh3qEK/c0EvTiTL rdVD3UaXf15NOBXjGSDvWg9HRlG4s2HTiHJhgAQMfRhQZBsuK17h4OjOM1k3W3ZBthiI bPWdzkDVYb/vpmeiB/5gRIkh9OT7bS2BQG5J3rbV7S1OjEiwfFxaSb1ybQcZeGZeu7FX ERTA== X-Gm-Message-State: AOJu0YzjwopHIOcxIyodXjHJCjWVDvWuD19qIk/AQjRtK8ofX7X526Au cBwyS1bCU8joNmyS+u+DSJQeBDtECGqxYbPuuogA6+bxwtlW4Me/IHDi X-Gm-Gg: ATEYQzygqkccw8YlFCXpv498xFnD04t+nKtMIQ2SzcATa1vkFrhxkxALgxSS6HU01px zPgYzx8exdXzH6FaLCiXRhE0TJWTsriCYRsgAHC+Sd4HmAno+kfNqJXf4vUAkPy2+5YdeTDdD9h v9aGnbofNH6iL1zHRih5wbADfVAHItVKG7wlWd2PsBph1dqgGa6hHlfciiP7xHSaSjgzv1PGIk3 wLg22YAgHKubRbLWcfQHK2tv20NCWbHIgXtgZbjhNTIVrey97Ch/oXZ6f7iiEmYGVCpIoK9s73R MQ+Oo6GEHctCsKMDbORqqC9YjWJ+wVc315Zfo7zdKtPWTKgjT9pX5rWH4DVLnJ1T2ZzecVrbyQs KrlnSOTt5d3m7D6i7vkQMBXQxqUy+kuy94yKEKHkCRPES6AjgLjB2frQ+FgwqlxIGf4eKvIJveu eTXzbqSVBGZOcyFp6CUhxsEQqwGbbJNOVW X-Received: by 2002:a05:6a21:3290:b0:38d:fad1:cf2a with SMTP id adf61e73a8af0-39ef7217565mr2362796637.13.1775025829813; Tue, 31 Mar 2026 23:43:49 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.125]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c76917ba961sm10278408a12.25.2026.03.31.23.43.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2026 23:43:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: DOCS - DROP SUBSCRIPTION does not document parameter "IF EXISTS" From: Chao Li In-Reply-To: Date: Wed, 1 Apr 2026 14:43:15 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Peter Smith X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Apr 1, 2026, at 14:16, Peter Smith wrote: >=20 > Hi. >=20 > I happened to notice that the "DROP PUBLICATION IF EXISTS" parameter > is documented [1] > ------ > IF EXISTS > Do not throw an error if the publication does not exist. A notice is > issued in this case. > ------ >=20 > But, the equivalent "DROP SUBSCRIPTION IF EXISTS" parameter > description is missing [2]. >=20 > ~~~ >=20 > PSA a patch to add similar documentation for DROP SUBSCRIPTION IF = EXISTS. >=20 > =3D=3D=3D=3D=3D=3D > [1] https://www.postgresql.org/docs/devel/sql-droppublication.html > [2] https://www.postgresql.org/docs/devel/sql-dropsubscription.html >=20 > Kind Regards, > Peter Smith. > Fujitsu Australia > Looks good. The patch uses the same phrase for =E2=80=9Cif exists=E2=80=9D= as the doc of =E2=80=9Cdrop publication=E2=80=9D. And I verified that a = notice is issued: ``` evantest=3D# drop publication if exists aaa; NOTICE: publication "aaa" does not exist, skipping DROP PUBLICATION evantest=3D# drop subscription if exists aaa; NOTICE: subscription "aaa" does not exist, skipping DROP SUBSCRIPTION ``` Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/