Re: Test database for new installs?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: josh(at)agliodbs(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Test database for new installs?
Date: 2004-11-19 08:27:59
Message-ID: 200411190927.59982.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Am Donnerstag, 18. November 2004 22:07 schrieb Josh Berkus:
> a) new users try just to "psql" as postgres, and get a "no such database
> postgres";

This "problem" has been recognized before. I think a possible solution is to
make psql recognize the error (the error code regime in libpq would have to
be extended for that), recognize that the user didn't specify a database, and
then tell him something like:

ERROR: no such database "postgres"
HINT: Since no database was specified explicitly, the name of the current user
was taken as the database name.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Troels Arvin 2004-11-19 10:42:38 Adding a suffix array index
Previous Message Marc G. Fournier 2004-11-19 04:58:20 Re: [Plperlng-devel] Re: Concern about new PL/Perl