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

From Alexander Farber
Subject Re: How to change the default database for a user
Date
Msg-id 943abd910601301018y74231aa3ked421bbddc29d1a7@mail.gmail.com
Whole thread Raw
In response to Re: How to change the default database for a user  (Doug McNaught <doug@mcnaught.org>)
Responses Re: How to change the default database for a user  (Doug McNaught <doug@mcnaught.org>)
List pgsql-general
Hi,

On 1/30/06, Doug McNaught <doug@mcnaught.org> wrote:
> Alexander Farber <alexander.farber@gmail.com> writes:
> >     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.

but I do specify the database username:

    h754814:afarber {109} psql --help | grep -w user
      -U NAME         database user name (default: "phpbb")

    h754814:afarber {110} psql -U punbb
    psql: FATAL:  database "phpbb" does not exist

And it wants to connect to a wrong database
("phpbb" instead of "punbb")

Regards
Alex

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: incremental backups
Next
From: Doug McNaught
Date:
Subject: Re: How to change the default database for a user