Re: How to change the default database for a user - Mailing list pgsql-general

From Doug McNaught
Subject Re: How to change the default database for a user
Date
Msg-id 87d5i9abdw.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to How to change the default database for a user  (Alexander Farber <alexander.farber@gmail.com>)
Responses Re: How to change the default database for a user  (Alexander Farber <alexander.farber@gmail.com>)
List pgsql-general
Alexander Farber <alexander.farber@gmail.com> writes:

> Hello,
>
> I've created a user and a database both wrongly named "phpbb".
> After that I have renamed both to "punbb" using "ALTER DATABASE"
> and "ALTER USER". Now everything works fine, except I always
> have to specify the database when connecting (both using psql or
> the PQconnectdb() from my C-program):
>
>     h754814:afarber {103} psql -U punbb
>     psql: FATAL:  database "phpbb" does not exist

psql uses your Unix username as the default database if you don't
specify one.

-Doug

pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: How to change the default database for a user
Next
From: "chris preston"
Date:
Subject: FW: Schema with Postgress 8.1