Re: Using drop database from psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using drop database from psql
Дата
Msg-id 5779.1138394005@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using drop database from psql  (Lan Barnes <lan@falleagle.net>)
Ответы Re: Using drop database from psql  (Guido Barosio <gbarosio@gmail.com>)
Список pgsql-novice
Lan Barnes <lan@falleagle.net> writes:
> SCM=# drop database SCM;
> ERROR:  database "scm" does not exist

> Can anyone cast light on this?

Case-folding.  Within SQL you'd need to refer to that database as
"SCM" (with the double quotes).  We don't do case-folding for names
used on the shell command line, but within SQL this is per spec.  See
the last paragraphs in this section:
http://www.postgresql.org/docs/7.4/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Luzmar Caicedo Useche
Дата:
Сообщение: Problem with pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with pg_dump