pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sherman Willden <operasopranos@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: How do I get rid of database test-aria
Date: Tue, 13 Feb 2018 12:41:26 -0800
Message-ID: <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com> (raw)
In-Reply-To: <CAGv-wXFYS=Yx7b_8grEDPNYFPum9pkwMwznSKaAnijdMNqVcOg@mail.gmail.com>
References: <CAGv-wXFYS=Yx7b_8grEDPNYFPum9pkwMwznSKaAnijdMNqVcOg@mail.gmail.com>

On 02/13/2018 12:38 PM, Sherman Willden wrote:
> development platform: HP Compaq 6710b
> postgresql 9.6
> Operating System: Ubuntu 17.10
> 
> It probably doesn't matter since there is nothing in the database. I 
> don't remember  how I created the database. It appears that postgresql 
> does not like a dash in the database name. I have not tried to create a 
> table under the database. When I try to drop the database I get the 
> following..
> 
> date_time=# DROP DATABASE test-aria;
> ERROR:  syntax error at or near "-"
> LINE 1: DROP DATABASE test-aria;

DROP DATABASE "test-aria";

See below for more info:

https://www.postgresql.org/docs/10/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

> 
> Thanks;
> 
> Sherman


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (5+ messages)  latest in thread

Message-ID: <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com>
Permalink:  ../73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com/
Also on:    postgresql.org/message-id/73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com

 · 

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: adrian.klaver@aklaver.com, operasopranos@gmail.com
  Subject: Re: How do I get rid of database test-aria
  In-Reply-To: <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com>
  References: <CAGv-wXFYS=Yx7b_8grEDPNYFPum9pkwMwznSKaAnijdMNqVcOg@mail.gmail.com> <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com>

* 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