Re: Connecting without specifying a database

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: Connecting without specifying a database
Дата
Msg-id 200502100812.09410.xzilla@users.sourceforge.net
обсуждение исходный текст
Ответ на Connecting without specifying a database  (Murray Cumming <murrayc@murrayc.com>)
Список pgsql-interfaces
On Thursday 10 February 2005 06:50, Murray Cumming wrote:
> Can PQconnectdb(), or something else, be used without specifying the
> dbname in the connection string? I want to connect just so that I can
> create a database that does not exist yet.
>
> When I don't specify the dbname, PQconnectdb() tries to connect to a
> database with the same name as the user, and then complains that it does
> not exist. Is it really necessary for each user to have an empty
> database like this?

Most applications choose to connect to template1 in these scenarios. 

-- 
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Murray Cumming
Дата:
Сообщение: Connecting without specifying a database
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Connecting without specifying a database