Skip site navigation (1) Skip section navigation (2)

Re: Using drop database from psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lan Barnes <lan(at)falleagle(dot)net>
Cc: Postgres Newbie <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Using drop database from psql
Date: 2006-01-27 20:33:25
Message-ID: 5779.1138394005@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Lan Barnes <lan(at)falleagle(dot)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

In response to

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2006-01-27 20:38:13
Subject: Re: Problem with pg_dump
Previous:From: Lan BarnesDate: 2006-01-27 20:07:53
Subject: Using drop database from psql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group