Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id D19BE9FB3BC for ; Tue, 24 Oct 2006 14:02:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 56402-09 for ; Tue, 24 Oct 2006 17:02:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31814.mail.mud.yahoo.com (web31814.mail.mud.yahoo.com [68.142.206.167]) by postgresql.org (Postfix) with SMTP id 5D0439FB1FE for ; Tue, 24 Oct 2006 14:02:31 -0300 (ADT) Received: (qmail 6597 invoked by uid 60001); 24 Oct 2006 17:02:30 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PB+1ir4meZGDqG7LNaGJwPw16khYTAiu1kXPK58eDQEMCtaKHBNa6eWsQ4ExXRP7gb3PrGQFso/FWkNwAtDbyGnrm9Kq3zNHPJd/MwteRO1fDyDVS0YbQrq1WZEp3YReL8eDPoYV4R2+ASlok+frIB9rS7W1v7FlGWxogBltEFE= ; Message-ID: <20061024170230.6595.qmail@web31814.mail.mud.yahoo.com> X-YMail-OSG: Bp5fX4EVM1kSZiuf0nHsHq6UFzcnD8Y7PsssaNXjC2lJed7g49w_erHS3A6hW4ZgKJ82eSzibOSy7gfWtPETec0U4SbOLYdyLePQef_wRtcLVqmW9bV0a9nnWiF4VPyyG.s4VZ_UTh7MrLE- Received: from [12.177.97.50] by web31814.mail.mud.yahoo.com via HTTP; Tue, 24 Oct 2006 10:02:30 PDT Date: Tue, 24 Oct 2006 10:02:30 -0700 (PDT) From: Richard Broersma Jr Subject: Re: database "postgres" does not exist To: Emmanuel Courcelle , pgsql-admin@postgresql.org In-Reply-To: <453E41D4.5010408@toulouse.inra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.355 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: *** X-Archive-Number: 200610/154 X-Sequence-Number: 23457 > 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.