Re: How to change the default database for a user

Поиск
Список
Период
Сортировка
От Alexander Farber
Тема Re: How to change the default database for a user
Дата
Msg-id 943abd910601301018y74231aa3ked421bbddc29d1a7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to change the default database for a user  (Doug McNaught <doug@mcnaught.org>)
Ответы Re: How to change the default database for a user  (Doug McNaught <doug@mcnaught.org>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: incremental backups
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: How to change the default database for a user