X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 64EE19FB2E6 for ; Tue, 15 Aug 2006 20:52:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 57837-08 for ; Tue, 15 Aug 2006 20:52:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from my.endian.it (unknown [62.146.87.34]) by postgresql.org (Postfix) with ESMTP id 815CD9FB273 for ; Tue, 15 Aug 2006 20:52:48 -0300 (ADT) Received: from dell.home.lan (host87-111.pool874.interbusiness.it [87.4.111.87]) (authenticated (0 bits)) by my.endian.it (8.11.6/8.11.6) with ESMTP id k7G00rT22288 for ; Wed, 16 Aug 2006 02:00:53 +0200 Subject: Re: psql: FATAL: Database "postgres" does not exist in From: Chris Mair To: pgsql-admin@postgresql.org In-Reply-To: <927B56F984BD8049AC93F18F5629DAB20858E8AF@PRDCG4EXVW01-1.OSS.PRD> References: <927B56F984BD8049AC93F18F5629DAB20858E8AF@PRDCG4EXVW01-1.OSS.PRD> Content-Type: text/plain Date: Wed, 16 Aug 2006 01:52:45 +0200 Message-Id: <1155685965.28246.6.camel@dell.home.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.185 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/181 X-Sequence-Number: 22724 > Sorry to bother everyone with this, but I tried searching the site and > the archive to no avail. I have read the docs and can't seem to get > this ironed out. I get the error "psql: FATAL: Database "postgres" > does not exist in the system catalog." when trying to start a psql > session. This tells me that my install in not complete. I reread the > the post install instructions and can't see anything obvious that says > I missed something. If you run psql without a database name as an option, it tries to connect to a database with the same name as the $USER psql runs as. So if you run it as user "postgres", and a db with that name does not exist (yet), it will complain. You should first create a database using "createdb somename" and then connect with "psql somename". Note you can get a list of available databases with psql -l. > > Any help is appreciated. > > Thanks > > John Vandervliet Bye, Chris. -- Chris Mair http://www.1006.org