From: Robert Treat <xzilla@users.sourceforge.net>
To: Oli Sennhauser <oli.sennhauser@bluewin.ch>
Cc: pgsql-admin@postgresql.org
Subject: Re: Backup/Recovery (BR) question
Date: 20 Nov 2003 13:27:38 -0500
Message-ID: <1069352859.10334.11078.camel@camel> (raw)
In-Reply-To: <3FBCE745.8070002@bluewin.ch>
References: <3FBCE745.8070002@bluewin.ch>
On Thu, 2003-11-20 at 11:09, Oli Sennhauser wrote:
> Hello dba's
>
> Im playing around with the BR features of PostgreSQL 7.4 for a
> PostgreSQL-BR course.
>
> Q1: Let's imagine, we have a database cluster containing DB1, DB2 and
> DB3. System (disk) crashes and we are only able to recover DB2 (was on a
>
> local disk not on the external like DB1 and DB3). Bring it up again,
> everything is fine...
> But then I want to clean up a little and drop the missing DB's (e.g. to
> install them from scratch):
>
> DB2=# \l
> List of databases
> Name | Owner | Encoding
> -----------+----------+-----------
> DB1 | postgres | SQL_ASCII
> DB2 | postgres | SQL_ASCII
> DB3 | postgres | SQL_ASCII
> template0 | postgres | SQL_ASCII
> template1 | postgres | SQL_ASCII
> (5 rows)
>
> DB2=# drop database DB1;
> ERROR: database "db1" does not exist
>
There is an error in your example that I can't determine if it is
intentional or not. In your above example, your problem is not that
your database doesn't exist, it is that you are not quoting the database
name properly. Note the name of the database is DB1 (uppercase) but the
error message is talking about db1 (lowercase)
If you do // drop database "DB1" // the first database will drop,
though you might want to verify if it is really damaged.
Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: xzilla@users.sourceforge.net, oli.sennhauser@bluewin.ch
Subject: Re: Backup/Recovery (BR) question
In-Reply-To: <1069352859.10334.11078.camel@camel>
References: <3FBCE745.8070002@bluewin.ch> <1069352859.10334.11078.camel@camel>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox