Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIRdO-0005EW-2h for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 09:22:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oIRdM-00025I-5v for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 09:22:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIRdL-00024I-Qc for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 09:22:43 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIRdE-00052G-Jt for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 09:22:42 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.90_1) (envelope-from ) id 1oIRdB-0007UR-H1; Mon, 01 Aug 2022 11:22:33 +0200 Received: from localhost ([127.0.0.1]) by sh4-5.1blu.de with esmtp (Exim 4.90_1) (envelope-from ) id 1oIRdB-0002aV-EG; Mon, 01 Aug 2022 11:22:33 +0200 Date: Mon, 1 Aug 2022 11:22:33 +0200 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: a database can be created but not droped Message-ID: <20220801092233.GA9@sh4-5.1blu.de> Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, This is with 14.1 on Linux. I have created a new database with $ createdb -U sisis -T template0 SRP-27097 I can connect to it, created tables and fill them with SQL: $ psql -Usisis -dSRP-27097 psql (14.1) Geben Sie »help« für Hilfe ein. SRP-27097=# select count(*) from sisisinst; count ------- 2 but I can not drop the database: $ psql -Usisis -dtestdb psql (14.1) Geben Sie »help« für Hilfe ein. testdb=# DROP DATABASE IF EXISTS SRP-27097 WITH FORCE; ERROR: syntax error at or near "-" ZEILE 1: DROP DATABASE IF EXISTS SRP-27097 WITH FORCE; Why is this? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub