pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How do I get rid of database test-aria
5+ messages / 3 participants
[nested] [flat]

* How do I get rid of database test-aria
@ 2018-02-13 20:38 Sherman Willden <operasopranos@gmail.com>
  2018-02-13 20:41 ` Re: How do I get rid of database test-aria Charles Clavadetscher <clavadetscher@swisspug.org>
  2018-02-13 20:41 ` Re: How do I get rid of database test-aria Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Sherman Willden @ 2018-02-13 20:38 UTC (permalink / raw)
  To: pgsql-general

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;

Thanks;

Sherman

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: How do I get rid of database test-aria
  2018-02-13 20:38 How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
@ 2018-02-13 20:41 ` Charles Clavadetscher <clavadetscher@swisspug.org>
  1 sibling, 0 replies; 5+ messages in thread

From: Charles Clavadetscher @ 2018-02-13 20:41 UTC (permalink / raw)
  To: Sherman Willden <operasopranos@gmail.com>; +Cc: pgsql-general

Hi

> On 13.02.2018, at 21:38, Sherman Willden <operasopranos@gmail.com> 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;
> 

Does
DROP DATABASE "test-aria";
work?

Regards
Charles

> Thanks;
> 
> Sherman





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: How do I get rid of database test-aria
  2018-02-13 20:38 How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
@ 2018-02-13 20:41 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2018-02-13 23:08   ` Re: How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Adrian Klaver @ 2018-02-13 20:41 UTC (permalink / raw)
  To: Sherman Willden <operasopranos@gmail.com>; pgsql-general

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




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: How do I get rid of database test-aria
  2018-02-13 20:38 How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
  2018-02-13 20:41 ` Re: How do I get rid of database test-aria Adrian Klaver <adrian.klaver@aklaver.com>
@ 2018-02-13 23:08   ` Sherman Willden <operasopranos@gmail.com>
  2018-02-13 23:09     ` Re: How do I get rid of database test-aria Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Sherman Willden @ 2018-02-13 23:08 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; clavadetscher@swisspug.org; pgsql-general

Yes the double quotes worked. I tried single quotes but since that didn't
work I just assumed that double quotes would not work either.

Thanks all;

Sherman

On Tue, Feb 13, 2018 at 1:41 PM, Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> 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
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: How do I get rid of database test-aria
  2018-02-13 20:38 How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
  2018-02-13 20:41 ` Re: How do I get rid of database test-aria Adrian Klaver <adrian.klaver@aklaver.com>
  2018-02-13 23:08   ` Re: How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
@ 2018-02-13 23:09     ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Adrian Klaver @ 2018-02-13 23:09 UTC (permalink / raw)
  To: Sherman Willden <operasopranos@gmail.com>; clavadetscher@swisspug.org; pgsql-general

On 02/13/2018 03:08 PM, Sherman Willden wrote:
> Yes the double quotes worked. I tried single quotes but since that 
> didn't work I just assumed that double quotes would not work either.

The below explains why:

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


> 
> Thanks all;
> 
> Sherman
> 
> On Tue, Feb 13, 2018 at 1:41 PM, Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     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
>     <https://www.postgresql.org/docs/10/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS;
> 
> 
>         Thanks;
> 
>         Sherman
> 
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2018-02-13 23:09 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 20:38 How do I get rid of database test-aria Sherman Willden <operasopranos@gmail.com>
2018-02-13 20:41 ` Charles Clavadetscher <clavadetscher@swisspug.org>
2018-02-13 20:41 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-02-13 23:08   ` Sherman Willden <operasopranos@gmail.com>
2018-02-13 23:09     ` Adrian Klaver <adrian.klaver@aklaver.com>

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