pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Streitzig <fstreitzig@gmx.net>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: a database can be created but not droped
Date: Mon, 1 Aug 2022 11:30:41 +0200
Message-ID: <YuedQZ9nA+bLJiyT@frastr-dev> (raw)
In-Reply-To: <20220801092233.GA9@sh4-5.1blu.de>
References: <20220801092233.GA9@sh4-5.1blu.de>

Am Mon, Aug 01, 2022 at 11:22:33AM +0200 schrieb Matthias Apitz:
> 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?

Please try: DROP DATABASE IF EXISTS "SRP-27097" WITH FORCE;

Best rehards
Frank





view thread (3+ messages)

Message-ID: <YuedQZ9nA+bLJiyT@frastr-dev>
Permalink:  ../YuedQZ9nA+bLJiyT@frastr-dev/
Also on:    postgresql.org/message-id/YuedQZ9nA+bLJiyT@frastr-dev

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: fstreitzig@gmx.net, guru@unixarea.de
  Subject: Re: a database can be created but not droped
  In-Reply-To: <YuedQZ9nA+bLJiyT@frastr-dev>
  References: <20220801092233.GA9@sh4-5.1blu.de> <YuedQZ9nA+bLJiyT@frastr-dev>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox