Re: existing but not-existing database.

From: Paulo Jan <admin(at)digital(dot)ddnet(dot)es>
To: Marcos Lloret <marcos(at)second(dot)ival(dot)es>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: existing but not-existing database.
Date: 2000-06-08 11:15:41
Message-ID: 393F805D.950FC1DD@digital.ddnet.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > psql todojamon
>
> FATAL 1: Database 'todojamon' does not exist.
> We know this because the directory
> '/usr/local/pgsql/data/base/todojamon' does not exist.
> You can create a database with the SQL command CREATE
> DATABASE.
> To see what databases exist, look at the subdirectories of
> '/usr/local/pgsql/data/base/'.
> Connection to database 'todojamon' failed.
> FATAL 1: Database 'todojamon' does not exist.
> We know this because the directory
> '/usr/local/pgsql/data/base/todojamon' does not exist.
> You can create a database with the SQL command CREATE
> DATABASE.
> To see what databases exist, look at the subdirectories of
> '/usr/local/pgsql/data/base/'.
>
> if
>
> > psql template1
> [inside postgres]
> template1=> create database todojamon;
> ERROR: createdb: database 'todojamon' already exists
> ERROR: createdb: database 'todojamon' already exists
>
> how can i delete todojamon database??
>

You should have deleted the database with "destroydb". Now you can edit
"by hand" the pg_database table, which is the system table where the
available databases are stored. Use standard SQL commands like "SELECT *
FROM pg_database" and etc. to delete the entry for your database.

Paulo Jan.
DDnet.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcos Lloret 2000-06-08 11:32:54 existing but not-existing database.
Previous Message Matt Goodall 2000-06-08 09:41:20 Re: Column types via ODBC interface