2

I've this database named a-b in postgres and I'm unable to delete it using this query drop database "a-b";. The double quotes were supposed to work but sadly, they didn't. I'm using Postgres-XL r1.3.

The error message I receive is:

ERROR: syntax error at or near "-"

Pragun
  • 1,123
  • 8
  • 20

2 Answers2

2

You could try renaming it first perhaps? ALTER DATABASE "a-b" RENAME TO adashb; Then follow up with a DROP DATABASE adashb;

Steve Matthews
  • 341
  • 4
  • 13
1

This bug is fixed in the latest Postgres-XL 9.5r1.4 release http://files.postgres-xl.org/documentation/release-xl-9-5r1.4.html