Re: pg_dumpall: does not exist database - Mailing list pgsql-general

From Csaba Nagy
Subject Re: pg_dumpall: does not exist database
Date
Msg-id 1145980766.14093.3.camel@coppola.muc.ecircle.de
Whole thread Raw
In response to Re: pg_dumpall: does not exist database  ("Jim Buttafuoco" <jim@contactbda.com>)
List pgsql-general
On Tue, 2006-04-25 at 17:49, Jim Buttafuoco wrote:
> just for the record the following also works
>
> from the psql prompt:
> jim=# create database "testing
> jim"# ";
> CREATE DATABASE
> jim=# drop database "testing
> jim"# "
> jim-# ;
> DROP DATABASE
> jim=#
>
> and from the unix shell:
> createdb "testing
> "
> dropdb "testing
> "
>
> you need the double quotes in all cases
>

I'm afraid the OP had a CR and from a unix shell you'll get a LF for the
new line. So for him it did not work. The trick with the wildcard is
very useful in other similar situations too ;-)

Cheers,
Csaba.



pgsql-general by date:

Previous
From: Gavin Hamill
Date:
Subject: Re: Anyone install 8.1 on Debian Stable?
Next
From: Alban Hertroys
Date:
Subject: Re: Database Selection