From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Emmanuel Courcelle <emmanuel.courcelle@toulouse.inra.fr>
To: pgsql-admin@postgresql.org
Subject: Re: database "postgres" does not exist
Date: Tue, 24 Oct 2006 10:02:30 -0700 (PDT)
Message-ID: <20061024170230.6595.qmail@web31814.mail.mud.yahoo.com> (raw)
In-Reply-To: <453E41D4.5010408@toulouse.inra.fr>
> Hello everybody
> We have a very strange problem here: we have been using postgresql for
> several years now, it runs fine without any problem.
> BUT today, we saw something I do not understand:
> when I try to use psql like this:
> sudo -u postgres psql
> I get the message psql: FATAL: database "postgres" does not exist
> About 1-2 months ago, this was OK
> I know this message is current on a new installation when the system is
> NOT initialized.
> But what puzzles me here is that the database postgres DID exist... but
> it seems to have suddenly disappeared !!!!
> A part from this, everything works fine, for example the command:
> sudo -u postgres psql -d template1
> works, and the postgres applications run quite smoothly
> So, here is my question: how such a thing could have happen ? We cannot
> remeber any stupid thing we could have done (but may be we did... And
> what do I have to do to recreate the postgres database... in fact, is it
> even necessary doing so ?
If you issue "\l" from within the posgresql command prompt does it list postgres as a database?
If it does not show up, my guess is that is was dropped.
Regards,
Richard Broersma Jr.
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: rabroersma@yahoo.com, emmanuel.courcelle@toulouse.inra.fr
Subject: Re: database "postgres" does not exist
In-Reply-To: <20061024170230.6595.qmail@web31814.mail.mud.yahoo.com>
References: <453E41D4.5010408@toulouse.inra.fr> <20061024170230.6595.qmail@web31814.mail.mud.yahoo.com>
* 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