Re: How to change the default database for a user

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

Предыдущее
От: Alexander Farber
Дата:
Сообщение: How to change the default database for a user
Следующее
От: "chris preston"
Дата:
Сообщение: FW: Schema with Postgress 8.1