From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sumita Biswas <sbiswas@cisco.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Postgres DB
Date: Sun, 22 Feb 2004 22:29:08 -0500
Message-ID: <20409.1077506948@sss.pgh.pa.us> (raw)
In-Reply-To: <001101c3f9b8$54403aa0$2a154d0a@apac.cisco.com>
References: <001101c3f9b8$54403aa0$2a154d0a@apac.cisco.com>
"Sumita Biswas" <sbiswas@cisco.com> writes:
> But when I type the command "psql" and don't specify a DB name, it says
> that:
> psql: FATAL: Database "postgres" does not exist in the system catalog.
Yes, because psql's default behavior is to try to connect to the DB with
the same name as your user name. That doesn't mean that such a DB is
guaranteed to exist, or even that anything is going to try to create it
for you. It's just a default behavior that people have found handy.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sbiswas@cisco.com
Subject: Re: Postgres DB
In-Reply-To: <20409.1077506948@sss.pgh.pa.us>
* 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