Re: pg_dumpall: does not exist database

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: jim(at)contactbda(dot)com
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dumpall: does not exist database
Date: 2006-04-25 15:59:26
Message-ID: 1145980766.14093.3.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-04-25 16:03:37 Re: Database Selection
Previous Message Gavin Hamill 2006-04-25 15:57:20 Re: Anyone install 8.1 on Debian Stable?